I use Microsoft Visual Studio 2013 writing MVC5 with Razor code, Suddenly Views show syntax error for all Razor code (red line under all Razor syntax) and visual studio intellisense doesn't work in all Views for Razor but project runs perfectly without any problem

for example,

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>
<br />
@Html.ActionLink("Go", "Index", "Test")

ViewBag and Html have red line under them with the following error error

the type or namespace name "ViewBag" couldn't be found 

any help?

Related posts

Recent Viewed