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,
does anybody knows why is this happening ?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With