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

后端 未结 12 1498
独厮守ぢ
独厮守ぢ 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

    I believe you have to shutdown/stop the local debugging server in order for the Application_Start() event to fire again... you should be able to right click on it in the system tray and choose "Stop".

提交回复
热议问题