How to stop all cassini instances?
Asked Answered
E

2

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?

Expulsive answered 7/12, 2011 at 9:52 Comment(2)
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?Malvia
@ShadowWizard I mean through command in command prompt.Expulsive
F
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.

Felspar answered 5/10, 2012 at 13:2 Comment(0)
G
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

Grenier answered 7/12, 2011 at 9:57 Comment(1)
I had to Add .exe to the end of name, then it works just fineMckinney

© 2022 - 2024 — McMap. All rights reserved.