I don't know, all of sudden Razor syntax showing in Red. I suspended and resumed and also closed VS and restarted still the same. Anything else to do?
Asked
Active
Viewed 431 times
1
-
1are you missing a namespace? – Daniel A. White Apr 27 '15 at 14:31
-
I just check I added new css class in _layout.cshtml. Which is not effecting on browsers. – James123 Apr 27 '15 at 14:44
-
I had the problem before, try cleaning the solution and building it again. – gyosifov Apr 27 '15 at 14:54
1 Answers
1
Check the references in the /Web.config and the Views/Web.config. If they are correct, try a clean and rebuild. If that still does not work, you can manually delete the bin folder and VS will recreate it anew.

Jaguir
- 3,620
- 1
- 19
- 26