IIs Error: Application Codebehind=“Global.asax.cs” Inherits=“nadeem.MvcApplication”

前端 未结 22 3202
灰色年华
灰色年华 2021-02-19 15:16

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         


        
22条回答
  •  迷失自我
    2021-02-19 16:18

    Right Click > Open Folder in File Explorer

    If you are in the directory, find Global.asax not the Global.asax.cs

    Right click on Global.asax file then find Open with

    Change Inherits="ProjectNameThatHasError.MvcApplication" to Inherits="YourNamespaceNow.MvcApplication"

    You can open it in Notepad, Visual Studio any version, anyways you'll be editing text.

提交回复
热议问题