CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 4/14/2007 11:45:17 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 23 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
simone_b
Asp.Net User
Debugging website in a solution with many websites starts many web server instances4/14/2007 11:45:17 AM

0/0

I've got a problem about debugging a website in a solution containing other several websites. When I select the website to debug and hit F5 all websites in the solution start debugging, and many instances of the development web server start up for each of them. Anyone has any advice about how to prevent this from happening?
SimoneB
Sohnee
Asp.Net User
Re: Debugging website in a solution with many websites starts many web server instances4/14/2007 11:53:50 AM

0/0

If you go into the debug configuration manager, you can select the projects to build when you debug (it should be a drop down options with "debug" and "build") - This might help.

 I must admit, I've always used IIS rather than the built in web server to deal with multiple website projects - so this might not be the answer.

simone_b
Asp.Net User
Re: Debugging website in a solution with many websites starts many web server instances4/14/2007 12:44:14 PM

0/0

This doesn't seem to be working. When I hit Ctrl + F5 only the selected website creates a new instance of the web server, but when I run in debug mode all websites start with their own server instance, which makes my system go out of memory.

SimoneB
Benson Yu - MSF
Asp.Net User
Re: Debugging website in a solution with many websites starts many web server instances4/16/2007 2:09:47 AM

0/0

Hi Simone,

 

Here is a workaround can avoid multi-instance of ?ASP.NET Development Server?to start. The Development Server by default starts for every file system project with different port. So we can set each project to use the same port number. After does that, only one instance of Development Sever will start for the startup project.

 

To specify a port for the ASP.NET Development Server

  1. In Solution Explorer, click the name of the application.
  2. In the Properties pane, click the down-arrow beside Use dynamic ports and select False from the dropdown list.

This will enable editing of the Port number property.

  1. In the Properties pane, click the text box beside Port number and type in a port number.
  2. Click outside of the Properties pane. This saves the property settings.

If you change the startup project, please be sure also stop the Development Server in status notification area. Because it is being used for current project.

 

 


Sincerely,
Benson Yu
Microsoft Online Community Support

Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
simone_b
Asp.Net User
Re: Debugging website in a solution with many websites starts many web server instances4/16/2007 2:32:35 AM

0/0

Thanks for the reply. Well, I thought it was my solution file which was somehow messed up. I wonder why this behavior is by design, I don't see the point of running as many web server instances as there are websites in the solution. It's like all console or winform projects were launched at each debug.
SimoneB
Benson Yu - MSF
Asp.Net User
Re: Debugging website in a solution with many websites starts many web server instances4/18/2007 8:16:34 AM

0/0

Hi simon,

 

I understand that you think Visual Studio needn?t start ASP.NET Development Server for non startup projects. I think so, but sometimes this behavior is useful. For example:

 

Solution with two projects, one is win form, another is web services. Maybe we will invoke a web method in the win form. It will fail unless the ASP.NET Development Server starts automatically.

 

I fully understand you concern that it will make your system go out of memory. You can take my advice as a workaround or create web site as HTTP to avoid it. I hope this helps.

 

 


Sincerely,
Benson Yu
Microsoft Online Community Support

Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
boatboy
Asp.Net User
Re: Debugging website in a solution with many websites starts many web server instances3/5/2008 9:35:15 PM

0/0

I still don't understand why this is a "by design" feature.  The scenario you describe of a web service and win form is exactly why there is a "Multiple Startup Projects" section.   IMO, if I choose "Single Startup Project" and more than one project starts up, that's a bug.  Can somebody please explain why this is a "by design" feature?

7 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro JSP 2 Authors: Simon Brown, Sam Dalton, Daniel Jepp, Kevin Mukhar, Dave Johnson, Sing Li, Matt Raible, Pages: 728, Published: 2005
Pro JSP Authors: Simon Brown, Sam Dalton, Daniel Jepp, Dave Johnson, Sing Li, Matt Raible, Pages: 624, Published: 2003
PHP5 and MySQL Bible Authors: Tim Converse, Joyce Park, Clark Morgan, Pages: 1042, Published: 2004
Pro Apache Struts with Ajax Authors: John Carnell, Rob Harrop, Kunal Mittal, Pages: 502, Published: 2006
Professional Visual Studio 2005 Authors: Andrew Parsons, Nick Randolph, Pages: 869, Published: 2006

Web:
Debugging website in a solution with many websites starts many web ... When I select the website to debug and hit F5 all websites in the solution start debugging, and many instances of the development web server ...
Debugging solution with multiple web apps launches each app - ASP ... Debugging website in a solution with many websites starts many web server instances http://forums.asp.net/t/1098901.aspx. Sincerely, ...
Visual Web Developer Team Blog : Tips & Tricks: Start-Up Options ... 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 ...
Macromedia - Developer Center: Installing and Configuring ... Select Internet Information Server (IIS) as the Web Server; Select the Default Web Site or your website name; do not use "All" for multiple instances with ...
How To Build A Website From Start To Finish In All Opensource ... Aug 15, 2007 ... A website now adays is filled with hundred of components. eCommerce is sometimes one of them. Many eCommerce solutions can START at $500.00 ...
: A HOWTO on Optimizing PHP with tips and methodologies Avoid overcrowding your web server with too many unneeded processes. .... Currently I recommend running PHP web sites using CGI, or using ISAPI with ...
Perl.com: Rapid Website Development with CGI::Application Oct 19, 2006 ... With the many plugins available for CGI::Application and Catalyst .... the web server log to find the most recent line that needs debugging. ...
PHP Server Installation Kits :: Hot Scripts A complete Apache webserver with PHP and MySQL starts. ..... install/uninstall individual packages, many server instances, additional packages and commands. ...
k5n.us: Introduction to Servlets With mod_perl it is not necessary for the web server to start a new process for each request. ... Many sites are looking for a portable solution. ...
Resin Web Server on Unix or Windows For many sites, the standalone web server is ideal because of its performance and because ... The starting script will start and stop your Resin instance, ...

Videos:
Zero Configuration networking with Bonjour Google TechTalks November 2, 2005 Dr. Stuart Cheshire, Apple Computer http://www.stuartcheshire.org/ ABSTRACT The desirability of making IP networ...
Distributed continuous quality assurance Google London Test Automation Conference (LTAC) Google Tech Talks September 8th, 2006 Presenter: Adam Porter
XML11: An Abstract Windowing Protocol Google TechTalks June 1, 2006 Arno Puder Arno Puder received his masters and Ph.D. in computer science and is currently working as an Assistant Prof...




Search This Site:










error when creating a new web site in visual studio 2005

the best code documentation generator for .vs 2005?

code change impact analysis

app_code folder bug

smarttags

url path

ajax question

change the language in web.config

website admin tool with long folder names

publishing to remote or local server has stopped working v2.0

"unable to find connection" error

visual studio 2005 remote debugging in windows 2003 server sp1 please help!

collapsable text background color

settings do not get restored as they should be!

how do i get the configuration manager to use a domain

vs 2005 and vss 6.0

vista + vs2005 = no drag&drop + no doubleclick

property sheet not holding values

visual basic 20005 - connect access database

delete of codefile, re-adding codefile - 'context is not a member of xxx.'

referenced assembly

debug breakpoints not hit

how do you remove project templates from vs 2005?

clr20r3 event and the parameter descriptions

vs 2005 pro** file>>new>>web site ** no templates!!!

permissions issue

smart tags won't open and some intellisense won't fully work after installing linq ctp

try catch error best practices

anonymous method code reformatting! (c#)

how to set autopost property of treeview control to false

  Privacy | Contact Us
All Times Are GMT