找到的程序集清单定义不匹配程序集引用。 (异常来自HRESULT:0x80131040) [英] The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

查看:2714
本文介绍了找到的程序集清单定义不匹配程序集引用。 (异常来自HRESULT:0x80131040)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

签署第三方组件,并把它们添加到GAC我收到以下错误后:又大会粘结剂日志条目显示的这个错误

报告说,错配组件不知道如何mistnaching我删除了所有的OBJ和bin倍和批量构建的应用程序重新导入+的dll文件。

 大会经理从加载:C:\\ WINDOWS \\ Microsoft.NET \\框架\\ v4.0.30319 \\ clr.dll
根据运行可执行C:\\ Program Files文件(x86)的\\ Common Files文件\\ Microsoft共享\\ DevServer \\ 11.0 \\ WebDev.WebServer40.exe---详细的错误日志如下。
=== pre-绑定状态信息===
日志:用户= AKBARCA \\用户日志:显示名称= ClubStarterKit.Core,版本= 3.0.1.0,文化=中立,公钥=空
 (完全指定)LOG:应用平台=文件:/// C:/用户/用户/桌面/ NhibernateMediumTrust / NhibernateMediumUpgrade /直/ clubstarterkit V3 preVIEW / ClubStarterKit.Web /日志:DEVPATH = C:\\ ProgramData \\红门\\ .net反射\\ DEVPATHLOG:初始PrivatePath =C:\\用户\\用户\\桌面\\ NhibernateMediumTrust \\ NhibernateMediumUpgrade \\直接\\ clubstarterkit V3 preVIEW \\ ClubStarterKit.Web \\ BIN
调用汇编:ClubStarterKit.Web,版本= 1.0.0.0,文化=中立,公钥=空。


解决方案

从我的经验,这种情况下,通常一旦你公布你的应用程序,当你在玩不同版本的NuGet包。如果发生这种情况是您的情况为好,我发现修复它是最好的办法右键单击的的(而不是单个项目),然后选择管理的NuGet包。然后,找到在已安装的软件包有问题的部件。你可能会看到它多次列出。点击每一个老版本的包的管理,并取消所有的项目。一旦这只包的最新版本仍然在列表中。点击这个管理,并重新检查需要包的任何项目。这将从根本上提升他们都使用软件包的版本相同,并应解决您的不匹配错误。

After signing the third parties assemblies and adding them to GAC I am getting the below error: also the Assembly Binder Log Entry shows this error

It says mismatching assemblies not sure how mistnaching as I deleted all obj and bin fold and batch built the application + reimported the dlls.

 Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\11.0\WebDev.WebServer40.exe

--- A detailed error log follows. 
=== Pre-bind state information ===
LOG: User = AKBARCA\user

LOG: DisplayName = ClubStarterKit.Core, Version=3.0.1.0, Culture=neutral, PublicKeyToken=null
 (Fully-specified)

LOG: Appbase = 

file:///C:/Users/user/Desktop/NhibernateMediumTrust/NhibernateMediumUpgrade/direct/clubstar

terkit v3 preview/ClubStarterKit.Web/

LOG: DEVPATH = C:\ProgramData\Red Gate\.NET Reflector\DevPath

LOG: Initial PrivatePath = 

C:\Users\user\Desktop\NhibernateMediumTrust\NhibernateMediumUpgrade\direct\clubstarterkit v3 preview\ClubStarterKit.Web\bin
Calling assembly : ClubStarterKit.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.

解决方案

From my experience, this happens, usually once you've published your app and when you have different versions of nuget packages in play. If this happens to be your situation as well, the best way I've found to fix it is to right-click the solution (not the individual projects) and choose "Manage Nuget Packages". Then, locate the offending assembly in the installed packages. You'll probably see it listed multiple times. Click "Manage" on each of the older versions of the package and uncheck all your projects. Once only the latest version of the package remains in the list. Click "Manage" on this one and recheck any projects that need the package. This will essentially upgrade them all to use the same version of the package and should resolve your mismatch error.

这篇关于找到的程序集清单定义不匹配程序集引用。 (异常来自HRESULT:0x80131040)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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