none
System.Web.Mvc broken after security update RRS feed

  • Question

  • 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 via (http://support.microsoft.com/kb/2993928)  and my projects references were broken, the following stack overflow post is similar but did not resolve my issue: http://stackoverflow.com/questions/26393157/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"/>

    How would I go about troubleshooting this, any ideas?

    Friday, October 17, 2014 4:30 AM

Answers

  • I got the same issue. Make sure that the reference of property of copy local is changed  to true.And then it should be work...
    • Marked as answer by edencorbin Friday, October 17, 2014 7:10 AM
    Friday, October 17, 2014 6:25 AM

All replies

  • I got the same issue. Make sure that the reference of property of copy local is changed  to true.And then it should be work...
    • Marked as answer by edencorbin Friday, October 17, 2014 7:10 AM
    Friday, October 17, 2014 6:25 AM
  • Awesome this worked. For anybody else with this issue, first I had to update 4.0.0.0 references to System.Web.Mvc to 4.0.0.1 then make sure that the reference of property of copy local is changed  to true.

    Friday, October 17, 2014 7:11 AM