Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 

System.Web.Mvc-related errors

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:

16/10/2014's Windows Update

like image 614
matt Avatar asked Oct 16 '14 04:10

matt


2 Answers

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)

like image 168
mth Avatar answered Sep 27 '22 22:09

mth


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.

like image 45
Murat Özbayraktar Avatar answered Sep 27 '22 21:09

Murat Özbayraktar