ASP.NET MVC4 solution fails to build after installing KB2993928

前端 未结 6 1343
天命终不由人
天命终不由人 2021-02-14 00:51

We have an ASP.NET MVC 4 solution with a couple of references that has been building without problems for about 2 years now. However, after installing KB2993928 and KB2993937 th

相关标签:
6条回答
  • 2021-02-14 01:11

    This was done by a security update on October 15th from Windows Update. You will need to run the updates on your build servers too.

    Link to update: http://www.microsoft.com/en-ie/download/details.aspx?id=44533

    This update fixes other versions as well.

    You will likely have to update your projects to the newer version, as it changes the version number and removes the older version completely.

    0 讨论(0)
  • 2021-02-14 01:15

    Remove any references to System.Web.MVC and then re-add them by manually browsing to the dll (C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Web.Mvc\v4.0_5.1.0.0__31bf3856ad364e35\System.Web.MVC.dll on our machine). A lot faster than re-installing MVC if this has just taken your production server down!

    0 讨论(0)
  • 2021-02-14 01:17

    If this issue is caused by references which in turn have dependencies on those specific assemblies, you can remedy this by coercing FxCop to use only the StrongName and ignore the version number. This solution is described here.

    Of course the real solution would be to update the referenced assemblies (with the indirect dependencies) to newer versions.

    0 讨论(0)
  • 2021-02-14 01:19

    The security updates update the assembly version of system.web.mvc.dll. You need to update your csproject to correct the version. Check this post: ASP.NET MVC security patch to version 3.0.0.1 breaks build

    0 讨论(0)
  • 2021-02-14 01:32

    Solution:

    1. Uninstall the MVC Framework via "Programs and Features" (whichever version you're using)
    2. Re-install MVC Framework (http://www.asp.net/mvc/mvc4)

    Should fix the problem - no changes to the build/solutions is required.

    0 讨论(0)
  • 2021-02-14 01:32

    I used the following solution and it's work perfectly:

    https://stackoverflow.com/a/26490590

    (don't forget to select the default project on the Package Manager Console for each project with the build failed)

    0 讨论(0)
提交回复
热议问题