How to kill the process of website in c#
-
Dear friend, I have hosted 3 web sites (WebSite1, WebSite2 ,WebSite3) on IIS6.0. I want to kill process of website2 in c# while killing the process of Web Site 2 ,the other website like website1 and website3 should not be stopped .First of all I am very eager to know how to get process of specific website so that I can kill process individually.WebSite1 , WebSite2 and Website 3 is not in default website . These are created separately. Please let me know how to kill process of specific website. Regards Rajesh
rajesh
-
Dear friend, I have hosted 3 web sites (WebSite1, WebSite2 ,WebSite3) on IIS6.0. I want to kill process of website2 in c# while killing the process of Web Site 2 ,the other website like website1 and website3 should not be stopped .First of all I am very eager to know how to get process of specific website so that I can kill process individually.WebSite1 , WebSite2 and Website 3 is not in default website . These are created separately. Please let me know how to kill process of specific website. Regards Rajesh
rajesh
Hi, do you host every website in a different application pool? If yes, then you can kill a website by killing the process for the app-pool. I know there is a command-line tool to get the name of the process running a single application pool, so I guess this is also possible using WMI or something similar. Regards Sebastian
It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.