开发者

What is the best way to force an Application Start when an Application Pool is recycled?

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开发者_JAVA百科?

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.


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 writing a service to make a request every few minutes. A little overkill, imo, but depends on your need.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜