使用Microsoft Enterprise库时出现问题(找到的程序集的清单定义与程序集引用不匹配) [英] Problem with Using Microsoft Enterprise library (The located assembly's manifest definition does not match the assembly reference)

查看:126
本文介绍了使用Microsoft Enterprise库时出现问题(找到的程序集的清单定义与程序集引用不匹配)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


以前我们使用的是Microsoft Enterprise Library version = 3.1.0.0,现在包含了新版本4.1.0.0 DLL's,我们在尝试运行时也更改了所有DLL参考和配置文件,我遇到了这个问题...

我得到了这个,我们正在为DataAccess使用单独的项目(我们将其替换为新的DLL,重建为项目添加的项目参考)

为dataConfiguration创建配置节处理程序时发生错误:无法加载文件或程序集"Microsoft.Practices.EnterpriseLibrary.Data,Version = 4.1.0.0,Culture = neutral"或其依赖项之一.找到的程序集的清单定义与程序集引用不匹配. (来自HRESULT的异常:0x80131040)

当前项目中的这一异常处理...

创建用于exceptionHandling的配置节处理程序时发生错误:无法加载文件或程序集"Microsoft.Practices.EnterpriseLibrary.ExceptionHandling,Version = 4.1.0.0,Culture = neutral"或其依赖项之一.找到的程序集的清单定义与程序集引用不匹配. (来自HRESULT的异常:0x80131040)


我从bin中删除了所有旧的DDL和支持文件,并在项目中添加了新的引用...

谁能帮我

Hi,
Previously we are using Microsoft Enterprise Library version=3.1.0.0 now we are included new version 4.1.0.0 DLL''s, We changed all DLL reference and config File also when i am trying to run i got this problem ...

i got this one where we are using a separate project for DataAccess(we replace with new DLLs,Rebuild the project added reference for the project)

An error occurred creating the configuration section handler for dataConfiguration: Could not load file or assembly ''Microsoft.Practices.EnterpriseLibrary.Data, Version=4.1.0.0, Culture=neutral'' or one of its dependencies. The located assembly''s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

this one exception handling in current project...

An error occurred creating the configuration section handler for exceptionHandling: Could not load file or assembly ''Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=4.1.0.0, Culture=neutral'' or one of its dependencies. The located assembly''s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


i removed all old DDL and supporting files from bin and added new reference in project...

Can any one help me

推荐答案

从您的项目中删除项目解决方案文件并打开

然后保存新的解决方案
remove project solution file from your project and open

then save new solution


基于该错误,您的项目/程序集仍引用旧版本的Enterprise程序集dll.

尝试清理项目.删除bin和obj文件夹.确保引用的任何第三方或跨项目程序集都在使用最新/正确版本的EL程序集.请参考当前版本,重建应用程序,看看是否有帮助.
Based on the error, your project/assemblies are still referenced to the older version of Enterprise assembly dll''s.

Try cleaning the project. Delete bin & obj folders. Make sure any third party or cross project assembly referenced is using latest/correct version of EL assembly. Refer the current version, rebuild application and see if it helps.


这篇关于使用Microsoft Enterprise库时出现问题(找到的程序集的清单定义与程序集引用不匹配)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆