For some reason my .NET application is restarting without any reason that I can see. this happens all day and night, even when there is no traffic on the site. Does anyone know how to see the IIS logs to see what is happening? I can't seem to trap the error message. I modified my global.asax to show me when my server goes up and comes down, but I can't seem to actually trap the reason. Any suggestions?
Sample of restart times First note, that I am currently the ONLY user for this site, so there should be no traffic Here is sample of the times the application is restarting: Automatic Error-Application_Error 7/29/2012 10:41:43 AM Automatic Error-Application_Error 7/29/2012 3:09:50 AM Automatic Error-Application_Error 7/29/2012 2:49:05 AM Automatic Error-Application_Error 7/29/2012 2:48:02 AM Automatic Error-Application_Error 7/28/2012 11:43:57 PM Automatic Error-Application_Error 7/28/2012 3:12:16 PM Automatic Error-Application_Error 7/28/2012 1:01:15 PM Automatic Error-Application_Error 7/28/2012 5:30:59 AM Automatic Error-Application_Error 7/27/2012 4:57:53 PM
The application pool will recycle after 20 minutes of inactivity. If no visitors are on your site at certain times of the day, that's likely what's happening. The application pool can also recycle if you exceed the memory quota for the site or have an extended period of excessive CPU use.
It restarts all the time though, even when i'm in the middle of using the site. Is there a way to find out what is causing it to restart? I'm guessing I have a programming error that is causing it, but since it doesn't happen on my local site, I cannot recreate the issue.