I am trying to deploy my web project and I keep getting this error:
Line 1: <%@ Application Codebehind=“Global.asax.cs” Inherits=“nadeem.MvcApplication” Langu
Nothing above worked for me. Everything was correct.
Close the Visual Studio and reopen again. This fixed the issue in my case.
The problem could have been caused by different versions of visual studio. I have Visual studio 2017 and 2019. I had opened the project on both the versions simultaneously. This might have created different set of vs files.
Close any instance of the Visual Studio and open again.