Application_Start not being hit in ASP.NET web app

后端 未结 2 997
情深已故
情深已故 2021-01-02 09:10

I\'m trying to debug something in the global.asax.cs file in an ASP.NET web app and have set a breakpoint in the Application_Start() event however that event is not getting

2条回答
  •  独厮守ぢ
    2021-01-02 09:44

    If i remember correctly, Application_Start runs before the debugger can hook up to the application.

    Try doing something else to check if the Application_Start method runs, like setting an application variable:

    Application("app") = "started"
    

    Then display the application variable in the page to see if it was set.

提交回复
热议问题