Your official information source from the .NET Web Development and Tools group at Microsoft.
If you have more than one project in your solution you can use following options of solution properties to set your start up actions... You can get the below dialog by right clicking your solution and going to its properties:
If you have more than one Web project (either Web Site, WAPs or both) in your solution and choose to start only one of it, you can do so by setting "Single startup project" above (or also via Project context menu "Set as StartUp Project" in solution explorer)... Although, even after doing so when you start debugging your application using ASP.Net Development Server you will see multiple instances of ASP.Net Development Servers in your system tray as shown below:
There is an important point to note here that a single instance of ASP.NET Development Server cannot handle more than one Web Application/Site... Ideally if you need this kind of functionality you should be using IIS for your debugging instead of ASP.NET Development server...
There are instances when you might have many web applications or web sites in the same solution and you may be actually debugging only one of them... In such scenario it might not be desirable to have multiple instances of ASP.NET Development Server running... VS provides an explicit setting in the property grid of web application/site called Development Web Server - "Always Start When Debugging" which is set to True by default... If you set this Property to be False only one web server instance will be created for the start up web project...
You might want to note that in that same debug run, you will not be able to debug any other non-IIS based Web Application/Site in the solution who has this property set to "False"; but if you really want to debug just one application at a time you may not have to worry about it anyway...
Vishal R. Joshi | Program Manager | Visual Studio Web Developer
PingBack from http://geeklectures.info/2007/12/23/tips-tricks-start-up-options-and-instances-of-aspnet-development-server-in-a-multi-project-solution/
This is very use ful when debugging the web sites/web applications
thnx this was quite useful
Thanks, this is exactly what I'm looking for. However, I'm not seeing any "Development Web Server" option in the Project properties under VS 2005.
Does this article apply to VS 2005 or 2008?
Here is the latest in my link-listing series .  Also check out my ASP.NET Tips, Tricks and Tutorials
You had asked...
>>>>>Does this article apply to VS 2005 or 2008?
It applies to VS 2008 only...
Hope this will be one more browny point to upgradeto VS 2008 :-)
Thanks for the clarification. Well, if it were up to me, I'd upgrade to VS 2008 in a heartbeat. But unfortunately it's not :)
Is there no way to prevent multiple instances of the dev server in VS 2005?
Links 4/Jan: ASP.NET, ASP.NET AJAX, ASP.NET MVC, Visual Studio, IIS7
【原文地址】 Jan 4th Links: ASP.NET, ASP.NET AJAX, ASP.NET MVC, Visual Studio, IIS7 【原文发表日期】 Friday, January
This was a really dumb and completely unnecessary feature for VS 2008.
After I converted from VS 2005 to VS 2008 it would launch 6 instances of this "development server" (since I have 6 web apps in my solution). The fix is not that easy (since there are still 2 "property" windows for projects).
Maybe the team that made the menus even prettier would have been better off working on making long needed improvements to the IDE.