views:

21

answers:

1

I'm wondering if there is a way to automagically fire off an Application Start for a web site/application whenever the Application Pool for that site is recycled?

Are there any canned solutions for this problem?

I would really like to avoid having one of my end users have to go through the application start of the site if they can avoid it.

+1  A: 

If you are using .NET 4 you can.

<applicationPools>
     <add name="MyAppWorkerProcess" managedRuntimeVersion="v4.0" startMode="AlwaysRunning" />
</applicationPools> 

See more information at ScottGu's article Auto-Start ASP.NET Applications.

Other than this I have heard of people righting a service to make a request every few minutes. A little overkill, imo, but depends on your need.

Dustin Laine
Awesome, I totally didn't know that existed.
Joseph