How to suppress Tasks.Task different PublicKeyToken error

Kelu Thatsall

I noticed I get one line of code underlined. If I understand correctly, the error means that I have two different versions of some library in my solution. However the error doesn't stop the solution from compiling and everything works like it's supposed to work. What is the reason of Visual Studio underlining this line of code? How can I stop this from happening? Where to look for some incoherence?

The exact error is:

Cannot convert instance argument type 'System.Threading.Tasks.Task [mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]' to 'System.Threading.Tasks.Task [System.Threading.Tasks, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]'

enter image description here

I use Nito.AsyncEx v3.0.1 package in a WebApi (v5.2.3 I think) solution which targets .NET Framework 4.5.1. Let me know if you need any more information.

Kelu Thatsall

I removed reference to System.Runtime and it seems it fixed the issue. I followed the advices from below question kind of blindly, but it seems it was the same issue.

Problems with references to TPL Dataflow and TPL in VS 2012 RC

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How to switch a user per task or set of tasks?

From Dev

How to suppress OpenCV error message

From Dev

How to create a grunt task that references other grunt tasks

From Dev

Entity Framework error PublicKeyToken=null'

From Dev

How to declare task dependency on tasks in 0.13?

From Dev

Async & await multiple tasks in a loop, how to return single Task

From Dev

How to use the @shared_task decorator for class based tasks

From Dev

Python Celery - How to call celery tasks inside other task

From Dev

How to suppress Undefined index error?

From Dev

How to process tasks as they complete -but each task requires different method to process task's result

From Dev

How to restart System.Threading.Tasks.Task in C#

From Dev

How to manage a list of tasks using the Task Parallel Library

From Dev

How to suppress error message of a command?

From Dev

how to return a task from execution of list of tasks

From Dev

Django + Celery: how to chain tasks with parameters to periodic task

From Dev

How to handle different exceptions in Task?

From Dev

How to suppress "Unsupported parameters" error in Ansible?

From Dev

How to declare task dependency on tasks in 0.13?

From Dev

How to delete tasks from celery task queue?

From Dev

how to suppress error from .vim plugin vimIM

From Dev

How to suppress QXcbConnection: XCB error

From Dev

How can I suppress these error messages?

From Dev

How to suppress tar error messages in when piping

From Dev

How to suppress Tasks.Task different PublicKeyToken error

From Dev

how to return a task from execution of list of tasks

From Dev

How to suppress certain error message in 'find' command?

From Dev

How to suppress error in pycharm community edition?

From Dev

How to Force Task To Wait for Child Tasks?

From Dev

How to suppress error messages in zsh?

Related Related

  1. 1

    How to switch a user per task or set of tasks?

  2. 2

    How to suppress OpenCV error message

  3. 3

    How to create a grunt task that references other grunt tasks

  4. 4

    Entity Framework error PublicKeyToken=null'

  5. 5

    How to declare task dependency on tasks in 0.13?

  6. 6

    Async & await multiple tasks in a loop, how to return single Task

  7. 7

    How to use the @shared_task decorator for class based tasks

  8. 8

    Python Celery - How to call celery tasks inside other task

  9. 9

    How to suppress Undefined index error?

  10. 10

    How to process tasks as they complete -but each task requires different method to process task's result

  11. 11

    How to restart System.Threading.Tasks.Task in C#

  12. 12

    How to manage a list of tasks using the Task Parallel Library

  13. 13

    How to suppress error message of a command?

  14. 14

    how to return a task from execution of list of tasks

  15. 15

    Django + Celery: how to chain tasks with parameters to periodic task

  16. 16

    How to handle different exceptions in Task?

  17. 17

    How to suppress "Unsupported parameters" error in Ansible?

  18. 18

    How to declare task dependency on tasks in 0.13?

  19. 19

    How to delete tasks from celery task queue?

  20. 20

    how to suppress error from .vim plugin vimIM

  21. 21

    How to suppress QXcbConnection: XCB error

  22. 22

    How can I suppress these error messages?

  23. 23

    How to suppress tar error messages in when piping

  24. 24

    How to suppress Tasks.Task different PublicKeyToken error

  25. 25

    how to return a task from execution of list of tasks

  26. 26

    How to suppress certain error message in 'find' command?

  27. 27

    How to suppress error in pycharm community edition?

  28. 28

    How to Force Task To Wait for Child Tasks?

  29. 29

    How to suppress error messages in zsh?

HotTag

Archive