Determine when a worker process will recycle using C#
am 20.10.2005 19:35:05 von KeithHarris
Hi,
I have an ASP.NET web application that runs certain tasks at a given time.
Sometimes the task is scheduled to run at a time that coincides with when
IIS is recycling an application's worker process.
This causes my web application task not to run. Is it possible to query IIS
using C# and discover when an application is scheduled to recycle it's worker
process?
This would enable me to disallow scheduling a task until after the recycle
has taken place.
Thanks very much for any help,
-Keith
Re: Determine when a worker process will recycle using C#
am 20.10.2005 19:47:39 von reb01501
Keith Harris wrote:
> Hi,
>
> I have an ASP.NET web application that runs certain tasks at a given
> time.
>
There was no way for you to know it, but this is a classic asp newsgroup.
While you may be lucky enough to find a dotnet-savvy person here who can
answer your question, you can eliminate the luck factor by posting your
question to a newsgroup where the dotnet-savvy people hang out. I suggest
microsoft.public.dotnet.framework.aspnet.
> Sometimes the task is scheduled to run at a time that coincides with
> when IIS is recycling an application's worker process.
>
> This causes my web application task not to run. Is it possible to
> query IIS using C# and discover when an application is scheduled to
> recycle it's worker process?
>
Sorry, I don't know. I'm still a relative beginner with asp.net.
HTH,
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.