How to restart IIS 6 defaultAppPool using asp.net c #?

How to restart IIS 6 defaultAppPool when I click the webpage button in asp.net web application.

I tried using HttpRuntime.UnloadAppDomain (); but it cannot restart IIS 6 defaultAppPool.

+3
source share
2 answers

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 method does not require special / administrative permissions!

0
source

Source: https://habr.com/ru/post/1717060/


All Articles