使用Microsoft Enterprise库时出现问题(找到的程序集的清单定义与程序集引用不匹配)

编程入门 行业动态 更新时间:2024-10-23 14:20:39
本文介绍了使用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库时出现问题(找到的程序集的清单定义与程序集引用不匹配)

本文发布于:2023-11-03 16:13:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1555542.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:程序   清单   不匹配   定义   Microsoft

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!