views:

30

answers:

1

I have an application made on asp.net mvc 2 and it is on IIS 7.5 on my pc I tried profiling it and I noticed that Application_Start gets called more than once,
anybody knows why is this happening ?

+3  A: 

The Application_Start event is fired once when the application domain is loaded. If you see it firing more than once then this would mean that the application restarts. There are multiple reasons an application domain could get unloaded like deleting modifying some of the files like web.config, the bin folder, ... Here's an article describing common reasons for application restart.

Darin Dimitrov