【问题标题】:Error with EnterpriseLibrary 5.0.414.0 after opening the project with VS2012使用 VS2012 打开项目后 EnterpriseLibrary 5.0.414.0 出错
【发布时间】:2023-04-02 17:49:01
【问题描述】:

我有一个用 VS2010 编写的网站,它使用对使用 EnterpriseLibrary 5.0.414.0 的服务的 Web 引用。

当我使用 VS2010 时一切正常,但是一旦我使用 VS2012 RTM 打开它,我开始收到以下错误(我在 VS2010 中打开项目时也遇到同样的错误)

Reference.svcmap: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, 
Culture=neutral, PublicKeyToken=null' or one of its dependencies. 
The located assembly's manifest definition does not match the assembly reference. 
(Exception from HRESULT: 0x80131040) 

请指教。

【问题讨论】:

标签: c# visual-studio-2012 enterprise-library


【解决方案1】:

如果您缺少上述程序集所需的其他企业库块(并且也复制本地 true),则可能会发生这种情况:

Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.ServiceLocation.dll
Microsoft.Practices.Unity.Configuration.dll
Microsoft.Practices.Unity.dll
Microsoft.Practices.Unity.Interception.Configuration.dll
Microsoft.Practices.Unity.Interception.dll

【讨论】:

    猜你喜欢
    • 2013-07-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多