微软最近一次安全更新MS14-059(链接:https://technet.microsoft.com/en-us/library/security/ms14-059)由于直接应用到了machine.config,更新了有关Asp.Net MVC程序集版本的引用,导致引用了GAC的ASP.Net MVC3和4的项目编译出错,错误提示为:
"Could not locate the assembly "System.Web.Mvc,Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35,processorArchitecture=MSIL"
暂时的解决办法就是从NuGet库中下载相应的Asp.Net MVC版本,然后把引用指向本地目录。NuGet命令为:
Install-Package Microsoft.AspNet.Mvc -Version <version> -Project PROJECTNAME
MVC 4 version: 4.0.40804.0
MVC 3 version: 3.0.50813.1