System.Web.Mvc not functioning as expected after Windows Update
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: KB2993937
ASP.NET MVC 4.0: KB2993928
ASP.NET MVC 5.0: KB2992080
ASP.NET MVC 5.1: KB2994397
These errors all seem to be related to the System.Web.Mvc
namespace of which I checked; it is still being associated with the project under References
. What could have gone wrong with my MVC project during the Windows Update, and how should I go about rectifying it?
Here is the log that indicates the updates administered today:
Solution 1:
The recent updates have incremented version numbers
3.0.0.0 -> 3.0.0.1 and 4.0.0.0 -> 4.0.0.1
I had to remove the reference and re-add (System.Web.Mvc is found in Assemblies >Extensions are of the Add Reference dialogue)
Solution 2:
I have same problem today after windows update. There is my solution.
Install-Package Microsoft.AspNet.Mvc -Version 5.2.0.0 -Project PROJECTNAME
Also you can try use these code maybe it helps.
Uninstall-Package Microsoft.AspNet.Mvc -Force
Goodluck.