8

When I am running my application, It opens many instance of cassini. How can i stop all or some of the cassini instances quickly.

I know to kill all the processes from task manager. Can it be done in some better and faster way?

Deviprasad Das
  • 3,868
  • 7
  • 31
  • 50
  • I'm not sure whether or not this applies to your particular problem, but are you aware that you can turn off "Auto assign port" in project properties, and always use a specific port, if that's what's causing your several instances? – David Hedlund Dec 07 '11 at 10:04
  • @ShadowWizard I mean through command in command prompt. – Deviprasad Das Dec 08 '11 at 05:29

2 Answers2

7

The process name has changed on this version its now:

taskkill /IM WebDev.WebServer40.exe /F  

When that doesn't work, check the tasklist for a similar name.

tpeczek
  • 22,947
  • 3
  • 69
  • 75
4vf5d6s465s
  • 86
  • 1
  • 1
5

This Visual Studio extension provides a quick way to kill all instances of Cassini (via a shortcut key)

EDIT :
If you want to do it via command line only, then you can use the taskkill command. An example:

taskkill /IM WebDev.WebServer /F

See this page for more examples, and an explination of the command. You may need to specify WebDev.WebServer40 for the .Net 4 web server

flipchart
  • 6,443
  • 4
  • 27
  • 51