I have a MVC 3
project that I deployed about a year ago then moved on.
The client asked for some mods and I re-opened the solution to find the red squiggly line error in the _ViewStart.cshtml
file.
I fixed the assembly System.Web.MVC
version issue (3.0.0.0->3.0.0.1), but I have no idea why this is happening. I'm also getting the same red squiggly with @RenderBody()
in the _Layout_.cshtml
file.
Nothing has been changed and it compiled and ran fine last I looked. I suspect Windows update may be involved given the MVC assembly issue.
Oddly enough, when I create a brand new MVC 3 project, that project builds and deploys perfectly.
I'm using VS2010
with .NET 4.0.
This is the only code in _ViewStart.cshtml
:
@{
Layout = "~/Views/Shared/_Layout_.cshtml";
}