When I was editing Razor view file, I got this error.



Apparently adding this appSetting value solved the problem (x is 1 for MVC 3, and 2 for MVC 4).
  <add key="webpages:Version" value="x.0.0.0" /> 

Normally this value is added automatically when creating new MVC project