Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I stop Visual Studio running all my web services

Tags:

How to stop Visual Studio 2008 from automatically running my web services.

I have a large Visual Studio 2008 solution that contains a number of web app projects and also several wcf web services. I have set the solution to have only one startup project, yet when I right-click on the web app project and select "Debug" > "Start New Instance" there appear multiple WebDev.WebServer icons in the system tray. There is one for every web service in the project.

Note: My web app project does have one Web Reference, but not to any of the WCF web services that are being launched.

I want to be able to stop these un-wanted web services from running.

like image 641
Howard Ricketts Avatar asked Sep 11 '09 08:09

Howard Ricketts


3 Answers

Eureka!

  1. Click on the web service project.
  2. Look at the "Properties" tab/window (Ctrl+W, P). For a web service you will see a property called "Always Start When Debugging" (which of course is set to True by default). NOTE: This is on the property sheet, not the property dialog for the project.
  3. Set "Always Start When Debugging" = False for all the un-wanted web apps/ web services.

My solution builds and starts really quick now!

like image 84
Howard Ricketts Avatar answered Sep 22 '22 17:09

Howard Ricketts


This isn't ideal, but I generally just right-click->unload them until I need them. They are still available in the solution (to reload on demand), but it avoids this launch niggle, and releases some resources (and makes "build solution" quicker etc).

like image 21
Marc Gravell Avatar answered Sep 20 '22 17:09

Marc Gravell


Try right clicking on your SOLUTION.

Common Properties -> Startup Project -> Single Startup Project (and selecting the website only).

try that?

like image 1
Pure.Krome Avatar answered Sep 21 '22 17:09

Pure.Krome