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

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

    Solved, just renamed the Global.asax or delete it fixed the problem :/

    Other known related bugs I found on the web:

    1. Global.asax.cs: must inherit from HttpApplication -> public class MvcApplication : HttpApplication
    2. Project output must be the bin folder and not Bin/Debug, etc.
    3. Iss application pool is not in the correct .net version.

提交回复
热议问题