AT the moment, I am relying on customers calling me to report that their database is not accessible. This invariably menas that something has crashed the App Pool and recycling it fixes the issue.
The Application Event Log shows that the user gets 'Event code 3001: The request has been aborted' whenever the App Pool has stopped.
I would like to detect this event and automatically recycle (restart) the App Pool the first time this occurs so that the system 'brings itself back up' whenever this occurs.
I am running IIS7 on a Windows Server 2008 machine.
Can this be done? If so, please help by providing a code example. Thank you.