>Looks like you can configure IIS to do it (haven't tried it myself):
>
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/87892589-4eda-4003-b4ac-3879eac4bf48.mspx?mfr=true>
>Failing that here's an example of getting the information in the Application end event:
>
http://weblogs.asp.net/scottgu/archive/2005/12/14/433194.aspxThanks, this works. I adjusted from the command prompt. I did a test on AppPoolRecycleOnDemand after I forced a manual recycle and this was logged. As for the automatic recycling, I set it to AppPoolRecycleTime. I think that's the one to use. Is this how you see it? AppPoolRecycleTime logs event on time-based recycles. So, I guess when the timer is reached, that one will be used.
As for the logging inside the application, I think I should create a table for the recycling. That will tell me, by the use of oApp.nID, which I will create to generate a unique ID, when a new startup or recycling was done and for how long. Then, I will be able to monitor it from the application. Then, I will be able to get rid of the Event Viewer logging. That one was only for a fast way of troubleshooting this.