无法加载System.Threading.Tasks.Extensions

用户12111111

我有一个基于.net Framework 4.5.1的Web项目。我们正在尝试为项目添加PostgreSQL支持。使用Nuget,我已经在项目中安装了4.0.4 npgsql。在引用下,我看到以下内容已添加到项目中。

  1. Npgsql-4.0.4.0-运行时版本v4.0.30319
  2. System.Threading.Tasks.Extensions-4.2.0.0-运行时版本v4.0.30319

当我尝试运行项目并连接并从数据库获取数据时,出现以下错误,提示FileNotFoundException:

    System.TypeInitializationException
      HResult=0x80131534
      Message=The type initializer for 'com.rsol.RConfig' threw an exception.
      Source=RConfig
      StackTrace:
       at com.rsol.RConfig.getInstance() in C:\Workspaces\PS\RConfig\RConfig.cs:line 1113
       at RAdmin.Global.Application_Start(Object sender, EventArgs e) in C:\Workspaces\PS\RAdmin\Global.asax.cs:line 528

    Inner Exception 1:
    TypeInitializationException: The type initializer for 'com.rsol.Db.DbMgr' threw an exception.

    Inner Exception 2:
    FileNotFoundException: Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.

    Inner Exception 3:
    FileNotFoundException: Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.

使用Nuget安装的System.Threading.Tasks.Extensions不会加载到项目中。当我检查System.Threading.Tasks.Extensions引用的属性时,该dll文件存在于该位置。我也尝试过使用gacutil将System.Threading.Tasks.Extensions.dll文件安装到程序集。我仍然遇到相同的错误。

如果您需要任何其他信息,请告诉我。

任何帮助都非常感谢。

吉滕德拉·莫里亚

更新Nuget程序包

https://www.nuget.org/packages/System.Threading.Tasks.Extensions/

会解决你的问题

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

DLL地狱-无法加载文件或程序集System.Threading.Tasks.Extensions

来自分类Dev

另一个“无法加载文件或程序集'System.Threading.Tasks.Extensions,版本= 4.2.0.0”

来自分类Dev

停止寻找System.Threading.Tasks.Extensions.dll 4.2.0.0的构建

来自分类Dev

ASP.net应用程序崩溃-无法加载文件或程序集“ Microsoft.Threading.Tasks.Extensions.Desktop”

来自分类Dev

ASP.net应用程序崩溃-无法加载文件或程序集“ Microsoft.Threading.Tasks.Extensions.Desktop”

来自分类Dev

System.Threading.Tasks.Parallel

来自分类Dev

System.Threading.Tasks.Parallel

来自分类Dev

无法加载文件或程序集“ Microsoft.Threading.Tasks.Extensions.Desktop”或其依赖项之一。参数不正确

来自分类Dev

Xamarin iOS-启动时无法加载文件或程序集“ System.Threading.Tasks”

来自分类Dev

无法加载程序集'Microsoft.Threading.Tasks

来自分类Dev

无法包含名称空间System.Threading.Tasks

来自分类Dev

RenderPartialAsync返回System.Threading.Tasks.Task`1 [System.Threading.Tasks.VoidTaskResult]

来自分类Dev

Microsoft.Threading.Tasks引用了不正确的System.Threading.Tasks.dll版本

来自分类Dev

Microsoft.Threading.Tasks引用了不正确的System.Threading.Tasks.dll版本

来自分类Dev

无法从'System.Threading.Tasks.Task'转换为'System.Collections.Generic.Dictionary <string,string>'

来自分类Dev

无法从'System.Threading.Tasks.Task'转换为'System.Collections.Generic.Dictionary <string,string>'

来自分类Dev

无法从“void”转换为 System.Threading.Tasks.Task<System.Action>

来自分类Dev

转换-“结果”不是“ System.Threading.Tasks.Task”的成员

来自分类Dev

System.Threading.Tasks.Task循环执行异常行为

来自分类Dev

找不到方法:'System.Threading.Tasks.Task`1 <!! 0>

来自分类Dev

System.Threading.Tasks.Task在循环中执行奇怪的行为

来自分类Dev

UWP 中 System.Threading.Tasks.Task.Factory.StartNew() 的问题?

来自分类Dev

System.Threading.Tasks 在 UNIX 和 C++ 中等效

来自分类Dev

System.Threading.Thread.Sleep(1000)与System.Threading.Tasks.Task.Delay(1000).Wait()

来自分类Dev

无法将类型'bool'隐式转换为'system.threading.tasks.task bool'

来自分类Dev

SignalR错误无法将类型'System.Threading.Tasks.Task <object>'隐式转换为'string'

来自分类Dev

LINQ to Entities无法识别方法'System.Threading.Tasks.Task'

来自分类Dev

无法将类型“ void”隐式转换为“ System.Threading.Tasks.Task”

来自分类Dev

方法错误'无法从await和async属性中等待'System.Threading.Tasks.Task'

Related 相关文章

  1. 1

    DLL地狱-无法加载文件或程序集System.Threading.Tasks.Extensions

  2. 2

    另一个“无法加载文件或程序集'System.Threading.Tasks.Extensions,版本= 4.2.0.0”

  3. 3

    停止寻找System.Threading.Tasks.Extensions.dll 4.2.0.0的构建

  4. 4

    ASP.net应用程序崩溃-无法加载文件或程序集“ Microsoft.Threading.Tasks.Extensions.Desktop”

  5. 5

    ASP.net应用程序崩溃-无法加载文件或程序集“ Microsoft.Threading.Tasks.Extensions.Desktop”

  6. 6

    System.Threading.Tasks.Parallel

  7. 7

    System.Threading.Tasks.Parallel

  8. 8

    无法加载文件或程序集“ Microsoft.Threading.Tasks.Extensions.Desktop”或其依赖项之一。参数不正确

  9. 9

    Xamarin iOS-启动时无法加载文件或程序集“ System.Threading.Tasks”

  10. 10

    无法加载程序集'Microsoft.Threading.Tasks

  11. 11

    无法包含名称空间System.Threading.Tasks

  12. 12

    RenderPartialAsync返回System.Threading.Tasks.Task`1 [System.Threading.Tasks.VoidTaskResult]

  13. 13

    Microsoft.Threading.Tasks引用了不正确的System.Threading.Tasks.dll版本

  14. 14

    Microsoft.Threading.Tasks引用了不正确的System.Threading.Tasks.dll版本

  15. 15

    无法从'System.Threading.Tasks.Task'转换为'System.Collections.Generic.Dictionary <string,string>'

  16. 16

    无法从'System.Threading.Tasks.Task'转换为'System.Collections.Generic.Dictionary <string,string>'

  17. 17

    无法从“void”转换为 System.Threading.Tasks.Task<System.Action>

  18. 18

    转换-“结果”不是“ System.Threading.Tasks.Task”的成员

  19. 19

    System.Threading.Tasks.Task循环执行异常行为

  20. 20

    找不到方法:'System.Threading.Tasks.Task`1 <!! 0>

  21. 21

    System.Threading.Tasks.Task在循环中执行奇怪的行为

  22. 22

    UWP 中 System.Threading.Tasks.Task.Factory.StartNew() 的问题?

  23. 23

    System.Threading.Tasks 在 UNIX 和 C++ 中等效

  24. 24

    System.Threading.Thread.Sleep(1000)与System.Threading.Tasks.Task.Delay(1000).Wait()

  25. 25

    无法将类型'bool'隐式转换为'system.threading.tasks.task bool'

  26. 26

    SignalR错误无法将类型'System.Threading.Tasks.Task <object>'隐式转换为'string'

  27. 27

    LINQ to Entities无法识别方法'System.Threading.Tasks.Task'

  28. 28

    无法将类型“ void”隐式转换为“ System.Threading.Tasks.Task”

  29. 29

    方法错误'无法从await和async属性中等待'System.Threading.Tasks.Task'

热门标签

归档