System.Web.Mvc not functioning as expected after Windows Update

前端 未结 10 2149
孤独总比滥情好
孤独总比滥情好 2020-12-05 06:01

After yesterday\'s Windows Update, I seem to have issues building my projects.

Related Windows Updates could be:
ASP.NET MVC 2.0: KB2993939
ASP.NET MVC 3.0:          


        
10条回答
  •  -上瘾入骨i
    2020-12-05 06:56

    There are two ways to fix this:

    Option 1: Add Microsoft.AspNet.Mvc using NuGet

    Use NuGet to add the latest revision of the MVC version you depend on to your project. Microsft recommends this approach.

    Option 2: Update assembly reference

    If you add a new assymbly reference to your project you'll see that the System.Web.Mvc assemblies are now versioned x.0.0.1.


    Source: http://blogs.msdn.com/b/webdev/archive/2014/10/16/microsoft-asp-net-mvc-security-update-broke-my-build.aspx

    I would suggest against bluntly attempting reinstalling MVC. Allthough it worked for me in the end, you'll run into trouble with NuGet being bundled with the MVC installer.

    You need to uninstall NuGet prior to reinstalling MVC because NuGet still being present causes the MVC installer to refuse to install or to fail.

    In addition I don't see why reinstalling MVC will prevent Windows Update from applying the update again after you reinstalled MVC.

提交回复
热议问题