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

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

    I'd a similar problem in WebAPI (related MVC).

    I fixed with:

    Adding ".Global" to inherits in .asax file (not asax.cs)

    Inherits="mynamespace.WebAPI.Global" 
    

    and changing the public class (asax.cs)

    public class Global : System.Web.HttpApplication
    

提交回复
热议问题