Reputation: 2137
How can I restart IIS 6 's defaultAppPool when I click a button of a webform page in an asp.net web app.
I tried to use HttpRuntime.UnloadAppDomain(); but it can not restart the IIS 6 's defaultAppPool.
Upvotes: 3
Views: 1152
Reputation: 1498
If you need to restart the ASP.NET application; just write some blank lines at the end of web.config; it will automatically restart the ASP.NET application. This technique doesnt require special/administrative permissions!
Upvotes: 0