views:

156

answers:

2

I have a solution in VS 2008 that consists of multiple Asp.net Web applications. Every time I start a new instance of any one of them, all of them open up ports on the development server and the system tray is littered with asp.net development server icons.

This never happened in vs 2005, only the web app that an instance was started of, comes up. How do I stop all the web apps from opening ports in vs 2008?

+1  A: 

Try using the File -> Browse Website instead of running the solution.

TheTXI
+6  A: 

There are two types of web projects in VS2008, Web Sites & Web Applications. I tested this with a Web Application (though, they maybe the same). I have two web-sites in one solution, and as you stated, two IIS ports opened up. Here's how I fixed it.

Click on the web-site in the solution explorer and then view the properties for it. If it's a Web Application it should have a property called "Always start when debugging". Set that to false for all web-sites you don't want to start up when you begin the debug process (e.g. click play).

John
+1 for a more concrete solution.
TheTXI
nice one... this a small thing that always bugged me but never enough for me to bother going and finding a fix for it :)
Eoin Campbell
Hehe, glad to help! :) I've got some of those small things myself that I've never fixed, I can sympathize. ;)
John
I would just like to also note that for WCF projects, the same option exists except the option is found by right-clicking the wcf project, then clicking the tab called WCF Options and unchecking the "Start WCF Service Host" option
jayrdub