Nuget更新打破了Webmatrix?

时间:2013-06-27 09:47:25

标签: asp.net web-config nuget webmatrix

我刚刚使用NuGet更新了我的NuGet.core包,现在我的网站已经坏了。我收到以下错误消息:

Method 'get_IsBindingRedirectSupported' in type 'System.Web.WebPages.Administration.PackageManager.WebProjectSystem' from assembly 'System.Web.WebPages.Administration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.TypeLoadException: Method 'get_IsBindingRedirectSupported' in type 'System.Web.WebPages.Administration.PackageManager.WebProjectSystem' from assembly 'System.Web.WebPages.Administration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation

我猜这与我的web.config没有更新有关?这是我的配置:

  <runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <dependentAssembly>
    <assemblyIdentity name="NuGet.Core" publicKeyToken="31bf3856ad364e35" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-2.6.40619.9041" newVersion="2.6.40619.9041" />
  </dependentAssembly>
</assemblyBinding>

谢谢,加文

2 个答案:

答案 0 :(得分:0)

答案 1 :(得分:0)

我最终重新安装Nuget,一切都已整理

相关问题