Page view counter

Debugging solution with multiple web apps launches each app

Last post 12-13-2007 12:27 AM by khuziz. 4 replies.

Sort Posts:

  • Debugging solution with multiple web apps launches each app

    12-10-2007, 6:25 AM
    • Loading...
    • khuziz
    • Joined on 06-18-2002, 8:52 AM
    • Lahore, Pakistan
    • Posts 14
    • Points 55
    I am using VS 2008 RTM to debug a solution that contains multiple web application projects. When I press f5 or run to debug a single project, a web server for every web app in the solution is started, and a WebDev.WebServer.EXE process is created for each. The solution properties has 'Single startup project' selected, not 'multiple startup projects'. The web browser opens correctly to the designated project- only multiple server instances are started. The same problem occurs if I debug tests. How do I ensure that only the server for the current startup project is launched?
    Khurram
  • Re: Debugging solution with multiple web apps launches each app

    12-11-2007, 9:11 PM
    Answer

    Hi Khurram,

    This is the by design behavior. I have replied a similar issue before. The workaround is setting the same port for each project. For more information about this issue, please refer to my reply in the following thread. Thanks.

    Debugging website in a solution with many websites starts many web server instances
    http://forums.asp.net/t/1098901.aspx

     

    Sincerely,
    Benson Yu
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.
  • Re: Debugging solution with multiple web apps launches each app

    12-12-2007, 12:57 AM
    • Loading...
    • khuziz
    • Joined on 06-18-2002, 8:52 AM
    • Lahore, Pakistan
    • Posts 14
    • Points 55

    Thanks for the reply and clarification that "its not a bug but a feature" :)

    When I specify the same port in different web application projects; and debug the solution with a specified startup project; I get the following errors..(I tried even specifying different virtual paths but with same port).....though a single instance of webdev.webserver runs: its even more annoying!

    WebDev.WebServer.exe has stopped working
    Description: Stopped working
    Problem signature:
    Problem Event Name: CLR20r3
    Problem Signature 01: webdev.webserver.exe
    Problem Signature 02: 9.0.0.0
    Problem Signature 03: 4731664b
    Problem Signature 04: System
    Problem Signature 05: 2.0.0.0
    Problem Signature 06: 471ebf0d
    Problem Signature 07: 2c04
    Problem Signature 08: 40
    Problem Signature 09: System.Net.Sockets.Socket
    OS Version: 6.0.6000.2.0.0.256.1
    Locale ID: 1033

    My solution has a winforms app and few web application projects. The winforms app is the startup project for debugging. The first time, debugger works fine; break points get hit. But when I stop debugging; change some code and re-debug (hitting F5) Visual Studio reports "Error while trying to run project: Unable to start debugging." I have to manually shutdown the webdev.webserver before second debugging session. The solution and projects are migrated from Visual Studio 2005. The target framework for all the projects are .NET 3.5. I have tried creating a new solution with multiple web application projects and a winforms project; its debugging expereince is fine...though the above "webdev.webserver has stopped working" issue with single ports on all web app projects is still there....

    Khurram
  • Re: Debugging solution with multiple web apps launches each app

    12-12-2007, 8:45 PM

    Hi Khurram,

    Thanks for your feedback. For this secnario, I recommend you using IIS as the web server, then you will not encounter this issue. About how to change existing web projects to use IIS as web server, please refer to my reply in the following thread:

    do I need to publish my website to be able to access it via server name?
    http://forums.asp.net/t/1168282.aspx

    Sincerely,
    Benson Yu
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.
  • Re: Debugging solution with multiple web apps launches each app

    12-13-2007, 12:27 AM
    • Loading...
    • khuziz
    • Joined on 06-18-2002, 8:52 AM
    • Lahore, Pakistan
    • Posts 14
    • Points 55

    I removed all the webprojects from the solution, saved the solution and then re-added the web projects. The debugging expereince (Unable to start debugging on subsequent F5s) is normal now. Running webdev.webserver for all web projects I guess is not that big issue any more; I think we can live with it till we re-organize our solutions merging these different web projects.

    Khurram
Page 1 of 1 (5 items)