关于“Failed to complete setup of assembly(hr = 0x80131040). Probing terminated”
https://www.cnblogs.com/Summerppp/archive/2020/03/06/12427819.html
场景:动态库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:
添加<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
</startup>
2. 查看动态库UFileDev属性“强名称”是否为true,应为FALSE。
关于强名称的程序集介绍参考https://www.geek-share.com/detail/2498632341.html
- ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
- 关于前台jsp页面Failed to load resource: the server responded with a status of 400 (Bad Request)
- 关于使用springmvc时Failed to load resource: the server responded with a status of 400 (Bad Request)错误可能原因
- 关于springMVC中:Failed to convert property value of type 'java.lang.String' to required type 'java.util
- 关于使用springmvc时Failed to load resource: the server responded with a status of 400 (Bad Request)错误可能原因
- Failed to sign bin\Debug\app.publish\setup.exe. SignTool Error: No certificates were found that met all of the given criteria.
- 关于Failed to convert property value of type [org.quartz.impl.StdScheduler] to required type [org.springframework.scheduling.quartz.SchedulerFactoryBean
- run Setup again to complete the installation of WinCE CAB Manager
- An error occurred during local report processing.Failed to load expression host assembly. Details: Request for the permission of
- 关于Java web程序中出现Server Tomcat v8.0 Server at localhost failed to start.的问题解决办法
- failed to lazily initialize a collection of role:报错
- 转:failed to lazily initialize a collection of role
- Error:Failed to complete Gradle execution.
- android sdk setup时呈现:Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml
- SLF4J: Failed toString() invocation on an object of type [java.util.HashMap] 的解决
- 关于在2.7中出现 "UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal"
- 关于AD软件PCB封装选择any时,可以看到封装但是不能倒入PCB,出现Failed To Add 1 Components ...的错误。
- 关于Error:Failed to find target with hash string 'Google Inc.:Google APIs:23' 的解决方案
- 关于异常org.apache.catalina.LifecycleException: Failed to start
- 关于error:Cannot assign to 'self' outside of a method in the init family