Windows EXE/Service To Restart Faulting IIS App Pool
Posted on 2008-10-15
I am looking for guidance on creating a C# windows application to detect a web application is causing continuous faults, and to recycle/restart the appropriate application pool accordingly.
Ideally, I would like to be able to detect whether or not an application pool is running or not, then enable rapid-fail protection so that as soon as the app pool shuts down, this application can restart it.
If this isn't possible, I can write something to detect the errors coming in, and then recycle the appropriate app pool.
I have no idea how to get access to the application pools programmatically, or how to identify them as associated with a particular website
Your help is really appreciated