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

前端 未结 22 3209
灰色年华
灰色年华 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:06

    In my case, I copied the project and pasted it as another project. The Global.asax file contains the wrong file name, so I just change

    <%@ Application Codebehind="Global.asax.cs" 
        Inherits="WrongAppname.MvcApplication" Language="C#" %>
    

    to

    <%@ Application Codebehind="Global.asax.cs" 
        Inherits="RightAppName.MvcApplication" Language="C#" %>
    

提交回复
热议问题