asp.net - 无法加载程序集 : 'Microsoft.Practices.EnterpriseLibrary.Common'

标签 asp.net .net visual-studio-2008 exception runtime-error

我有一个 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/

相关文章:

c# - 排序的特殊性

visual-studio-2008 - 如何在 Visual Studio 2008 中向网站/应用程序添加程序集信息

c++ - 调试时如何看到整个数组

javascript - JQuery DataTable pagenate 无法与 asp 转发器一起使用

c# - 如何从 RadioButtonList 中获取选中的值?

asp.net - 如何在保持端口 443 打开的同时禁用 IIS 上的端口 80?

sql - SQL Server 中的悲观并发 - 无法释放应用程序锁

c# - 如何在 .net 中编写人工智能 (C#)

c# - 博客引擎2.0错误

asp.net - 如何在同一解决方案中运行/调试多个 Web 应用程序项目?