.NET应用程序寻找不存在的参考版本

时间:2013-05-13 20:29:42

标签: .net version referenceerror

我的项目中有一个自定义引用,导致应用程序无法找到时失败。该应用程序正在搜索版本1.30.2932 ...并且我安装的最新版本是1.30.2928 ...

这是在运行时v。数字发生的某种变化吗?

我已经完成了通常的步骤: - 检查我的机器配置,以确保那里的信息是正确的 - 检查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的实例......事实上,我有最新版本。一些人倾注了代码,寻找一些东西,但没有找到任何东西。我最终刚刚创建了一个包含引用内容的新类。所以...换句话说......如果其他人发生这种情况,抱歉浪费你的时间: - /

0 个答案:

没有答案