开发者

How to Start/Stop Default Web Site and Application Pools in IIS7 programmatically

开发者 https://www.devze.com 2023-01-03 07:47 出处:网络
How to Start/Stop the Default Web Site and any Application开发者_Go百科 Pool of the IIS7 programmatically in C#?This sounds like something that you\'d want to use WMI for. THe IIsWebServer class would

How to Start/Stop the Default Web Site and any Application开发者_Go百科 Pool of the IIS7 programmatically in C#?


This sounds like something that you'd want to use WMI for. THe IIsWebServer class would probably be a good place to start looking, you can find documentation for that here. And here's a codeproject article for stopping and starting sites in C#.


You can use using System.DirectoryServices

http://terrapinstation.wordpress.com/2008/06/12/restart-iis-application-pool-from-aspnet-page/

0

精彩评论

暂无评论...
验证码 换一张
取 消