我的项目中有一个自定义引用,导致应用程序在找不到时失败。该应用程序正在搜索版本 1.30.2932... 而我安装的最新版本是 1.30.2928...
这是运行时 v. numbers 发生的某种变化吗?
我已经完成了通常的步骤: -检查我的机器配置以确保信息正确 -检查 web.config -删除(所有版本).Net Framework 文件夹中的临时文件
这是错误日志,希望对您有所帮助并提前致谢:
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = IIS APPPOOL\Classic .NET AppPool
LOG: DisplayName = XYZ.Utilities, Version=1.30.2932.19647, Culture=neutral, PublicKeyToken=c3242c516e8368b7
(Fully-specified)
LOG: Appbase = file:///C:/Solutions/XYZ/Branch/Portfolio_Redux/
LOG: Initial PrivatePath = C:\Solutions\XYZ\Branch\Portfolio_Redux\bin
Calling assembly : XYZ.DMCS, Version=2.5.3205.18784, Culture=neutral, PublicKeyToken=288f76032f86193b.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Solutions\XYZ\Branch\Portfolio_Redux\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
LOG: Post-policy reference: XYZ.Utilities, Version=1.30.2932.19647, Culture=neutral, PublicKeyToken=c3242c516e8368b7
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/servicerequest/a9d33737/3c0cb1cd/XYZ.Utilities.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/servicerequest/a9d33737/3c0cb1cd/XYZ.Utilities/XYZ.Utilities.DLL.
LOG: Attempting download of new URL file:///C:/Solutions/XYZ/Branch/Portfolio_Redux/bin/XYZ.Utilities.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Revision Number
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
这是在我的 Web.Config 中:
<configSections>
<section name="XYZ_UTILITIES" type="XYZ.Utilities.ConfigurationSectionHandler, XYZ.Utilities, Version=1.30.2928.18589, Culture=neutral, PublicKeyToken=c3242c516e8368b7"/>
<runtime>
<dependentAssembly>
<assemblyIdentity name="XYZ.Utilities" publicKeyToken="c3242c516e8368b7" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-1.30.2928.18589" newVersion="1.30.2928.18589"/>
</dependentAssembly>
更新- 仍然没有关于造成这种情况的原因,但肯定有一些时髦的事情发生。在与我丢失的参考资料的创建者交谈后,肯定没有版本号为 1.30.2932 的实例......事实上,我有最新版本。几个人倒在代码上,寻找着什么,但什么也找不到。我最终只是创建了一个包含参考内容的新类。所以......换句话说......如果这发生在其他人身上,对不起浪费你的时间:-/