I am using IIS7.5 to force my web app to load automatically (startMode="AlwaysRunning"
), and I now want to preload my cache data. I am a bit confused though because two approaches seem identical:
Application_Start
in global.asaxserviceAutoStartProviders
in IIS config filesThey seem rather redundant and doing the same thing. If they are, I guess I would rather use Application_Start
than create code dependencies in IIS configuration files. Any advice?
The Application_Start
in the global.asax is fired when the application receives it's first request (first user or autostart) so it is not used to start the site.
Use serviceAutoStartProviders
to start
http://www.asp.net/whitepapers/aspnet4#0.2__Toc253429241
The IIS Application Warm-Up Module is easier to use http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-application-initialization
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