views:

1514

answers:

2

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 fired when I start the web app inside VS2008. I'm targeting the 3.5 framework.

What could prevent this event from being fired? Or how could I have messed up the project such that this event is no longer wired up?

+6  A: 

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.

Guffa
+6  A: 
splattne