Global.asax can't find code-behind class

前端 未结 3 1399
一生所求
一生所求 2021-01-13 11:06

I keep getting this error when I try to run a web app that I have inherited. It was written in 2010 for C# 3.5 and uses Mvc 2. I have installed the necessary libraries howev

3条回答
  •  天命终不由人
    2021-01-13 11:54

    Add Codebehind="Global.asax.cs" to the Markup file (Global.asax):

    From:

    <%@ Application Inherits="AdminConsole.MvcApplication" Language="C#" %>
    

    To:

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

提交回复
热议问题