How can I restart(recycle) IIS Application Pool from C# (.net 2)?
Appreciate if you post sample code?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re on IIS7 then this will do it if it is stopped. I assume you can adjust for restarting without having to be shown.
If you’re on IIS6 I’m not so sure, but you could try getting the web.config and editing the modified date or something. Once an edit is made to the web.config then the application will restart.