找到的程序集清单定义不匹配程序集引用。 (异常来自HRESULT:0x80131040)

编程入门 行业动态 更新时间:2024-10-24 04:45:08
本文介绍了找到的程序集清单定义不匹配程序集引用。 (异常来自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 \\红门\\ 反射\\ 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)

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

发布评论

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

>www.elefans.com

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