我一直在更新使用Spring.NET的.NET MVC 5应用程序中的软件包,而我正试图通过Microsoft.AspNet.WebApi.Core 5.2.3获取Spring.Web.Mvc5版本。 。我在Fusion Log中获得以下内容。关于如何解决这个问题的任何想法?我使用的是Microsoft.AspNet.OData 1.7,它似乎依赖于版本高于5.0.0.0的Microsoft.AspNet.WebApi.Core。每当我降级到5.0.0.0时,我都会失去System.Web.Http.SingleResult
的定义。
*** Assembly Binder Log Entry (8/24/2015 @ 2:44:55 PM) ***
The operation failed.
Bind result: hr = 0x80131040. No description available.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = IIS APPPOOL\ASP.NET v4.0
LOG: DisplayName = System.Web.Http, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///C:/SVN/Path-To/WebApp/
LOG: Initial PrivatePath = C:\SVN\Path-To\WebApp\bin
LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\webapp\309524fe
LOG: Cache Base = C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\webapp\309524fe
LOG: AppName = da54b19b
Calling assembly : Spring.Web.Mvc5, Version=2.0.1.45000, Culture=neutral, PublicKeyToken=65e474d141e25e07.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\SVN\Path-To\WebApp\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: System.Web.Http, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/webapp/309524fe/da54b19b/System.Web.Http.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/webapp/309524fe/da54b19b/System.Web.Http/System.Web.Http.DLL.
LOG: Attempting download of new URL file:///C:/SVN/Path-To/WebApp/bin/System.Web.Http.DLL.
LOG: Assembly download was successful. Attempting setup of file: C:\SVN\Path-To\WebApp\bin\System.Web.Http.dll
LOG: Entering download cache setup phase.
LOG: Assembly Name is: System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: The assembly reference did not match the assembly definition found.
ERR: Setup failed with hr = 0x80131040.
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
答案 0 :(得分:0)
因此,答案是NuGet忘记了已安装的版本号,并且不再更新assemblyBinding
的{{1}}部分。我之前从来没有遇到任何问题,而且我一直在玩弄傻瓜试图找出问题所在。对于它的价值,我的配置文件中有一部分可行,但根据您使用的库,您的可能会有所不同。
Web.config