我有一个 VS 2008 解决方案,其项目正在使用许多 Microsoft.Practicies 库。
**所有程序集的版本是:4.1.x
一切正常,但是当我运行它时,出现以下运行时错误:
Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
在构建和运行的机器上没有安装企业库的版本。
对于所有程序集,“复制本地”是true,“特定版本”是false。
我在这里做错了什么?
相关:Could not load file or assembly , Force Visual Studio References
最佳答案
Microsoft 实践库是紧密耦合的,并且一些程序集是相互依赖的。确保您已添加所需的所有库,以及任何其他库依赖项
关于asp.net - 无法加载程序集 : 'Microsoft.Practices.EnterpriseLibrary.Common' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14148093/