简体   繁体   中英

How to restart IIS 6 's defaultAppPool using asp.net C#?

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.

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM