关于“Failed to complete setup of assembly(hr = 0x80131040). Probing terminated”(关于端午节的手抄报简单又好看)

网友投稿 792 2022-09-19

关于“Failed to complete setup of assembly(hr = 0x80131040). Probing terminated”(关于端午节的手抄报简单又好看)

关于“Failed to complete setup of assembly(hr = 0x80131040). Probing terminated”(关于端午节的手抄报简单又好看)

场景:动态库UFileDev(运行时版本v4.0.30319)内置方法调用了动态库ICSharpCode.SharpZipLib(运行时版本v2.0.50727)。调用动态库UFileDev过程中一直报错如下:

=== Pre-bind state information ===

LOG: DisplayName = ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73

(Fully-specified)

LOG: Appbase = file:///G:/program_test/WebApiTest/

LOG: Initial PrivatePath = G:\program_test\WebApiTest\bin

Calling assembly : UFileDev, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a7bcd44e2dce6fe6.

===

LOG: This bind starts in default load context.

LOG: Using application configuration file: G:\program_test\WebApiTest\web.config

LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config

LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.

LOG: Post-policy reference: ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73

LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/webapitest/3f0358dc/ff934c92/ICSharpCode.SharpZipLib.DLL.

LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/webapitest/3f0358dc/ff934c92/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.DLL.

LOG: Attempting download of new URL file:///G:/program_test/WebApiTest/bin/ICSharpCode.SharpZipLib.DLL.

WRN: Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN

ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

解决方案:

1.  修改app.config:

添加

2. 查看动态库UFileDev属性“强名称”是否为true,应为FALSE。

关于强名称的程序集介绍参考https://cnblogs.com/luminji/archive/2010/10/21/1857339.html

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:cmd基础 help 查看帮助文档
下一篇:cmd基础 echo 输出systemroot的值
相关文章

 发表评论

暂时没有评论,来抢沙发吧~