views:

440

answers:

2

how can i stop (automatically) development server when i stop debugging in visual studio?

+1  A: 

There is no way to get the Asp.Net development service to automatically stop when you hit the "stop debugging" button, as all that does is detach the debugger. You could however explicitly kill the process yourself (which would in turn cause VS to stop debugging).

This question shows how you might do this in a Macro:

http://stackoverflow.com/questions/886692/automatically-stop-restart-asp-net-development-server-on-build

Kragen
A: 

http://blogs.msdn.com/webdevtools/archive/2007/12/13/workaround-debugging-global-aspx-cs-application-start-with-asp-net-web-server-within-visual-studio.aspx

Enabling "Edit & Continue" on the web server project worked for me. It doesnt shutdown cassini when you stop debugging, but it does restart cassini when you start debugging.

mat3