[英]Could not load file or assembly 'System.Collections, Version=4.0.0.0
I have the nuget package installed. 我已经安装了nuget软件包。
The bin folder does not show a system.collections.dll. bin文件夹不显示system.collections.dll。
When i run the application, i get this error: 当我运行应用程序时,出现此错误:
Could not load file or assembly 'System.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
无法加载文件或程序集“ System.Collections,版本= 4.0.0.0,区域性=中性,PublicKeyToken = b03f5f7f11d50a3a”或其依赖项之一。 The system cannot find the file specified.
该系统找不到指定的文件。
No matter what i do, i cannot resolve it! 无论我做什么,我都无法解决! Why on earth is the dll missing.
为什么地球上缺少dll。
I have tried: 我努力了:
If i remove the references from my web.config 如果我从web.config中删除引用
It throws up further errors on the following and if i keep removing them, more and more problems come up: 它在以下方面引发了更多错误,如果我继续删除它们,将会出现越来越多的问题:
<add assembly="System.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Collections.Concurrent, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Diagnostics.Debug, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Globalization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.IO, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Any ideas? 有任何想法吗?
Further notes: 进一步说明:
Edit: 编辑:
Edit 2: 编辑2:
"Line 2235: 1> There was a conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes"." “ 2235行:1>“ mscorlib,版本= 4.0.0.0,文化=中性,PublicKeyToken = b77a5c561934e089”和“ mscorlib,版本= 2.0.5.0,文化=中性,PublicKeyToken = 7cec85d7bea7798e,Retargetable =是之间存在冲突” ”。
There's no System.Collections
assembly. 没有
System.Collections
程序集。 They are all in mscorlib.dll. 它们都在mscorlib.dll中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.