Today I woke up after a windows update last night, and my MVC project was broken (many missing namespace errors). Apparently, my System.Web.Mvc version was updated from 4.0.0.0 to 4.0.0.1 automatically and my project references were broken, see: Windows update caused MVC3 and MVC4 stop working
Following some threads, I went through my entire project and renamed references from 4.0.0.0 to 4.0.0.1, this resolved the errors, however now I am getting the following error:
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0234: The type or namespace name 'Html' does not exist in the namespace 'System.Web.Mvc' (are you missing an assembly reference?)
Source Error:
Line 36: <add namespace="System.Web.Mvc"/>
Line 37: <add namespace="System.Web.Mvc.Ajax"/>
Line 38: <add namespace="System.Web.Mvc.Html"/>
Line 39: <add namespace="System.Web.Optimization"/>
Line 40: <add namespace="System.Web.Routing"/>
I am a bit stumped as to what to do about this. Any ideas?