SyntaxFix
Write A Post
Hire A Developer
Questions
In my case (ASP.NET MVC 4 application), the Global.asax file was missing. It was appearing in Solution explorer with an exclamation mark. I replaced it and the error went away.
Global.asax