Why does not the Application_Start() event fire when I debug my ASP.NET MVC app?

后端 未结 12 1499
独厮守ぢ
独厮守ぢ 2021-01-30 16:01

I currently have the following routines in my Global.asax.cs file:

public static void RegisterRoutes(RouteCollection routes)
{
    routes.IgnoreRout         


        
12条回答
  •  臣服心动
    2021-01-30 16:39

    In my case was I using

    Local IIS Web server in web project settings

    and I change to Use Visual Studio Development Server, and this works.

提交回复
热议问题