Preload / autoload in IIS

By | 2013-02-15

Auto load a method after each application pool restart/recycle

It’s useful when using quartz.Net to execute service periodically instead of using Windows service.

Otherwise, the application pool will be collected according to the default idle-time and recycle time.

http://stackoverflow.com/questions/11140597/iis-app-pool-recycle-quartz-scheduling

 

Beware about the <serviceAutoStartProviders>, the provider need to use full qualified name

<serviceAutoStartProviders>
<add name=”PreWarmCache” type=”Web.P.PreWarmCache, Web.P, Culture=neutral, PublicKeyToken=null” />
</serviceAutoStartProviders>

 

Leave a Reply

Your email address will not be published. Required fields are marked *