Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. How to kill the process of website in c#

How to kill the process of website in c#

Scheduled Pinned Locked Moved Web Development
csharptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rajesh_K_Sharma
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • R Rajesh_K_Sharma

      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

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups