Previous Next

Thread: VS2008 debugging problems

Last post 10-07-2008 7:40 AM by CrispinH. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 09-20-2008, 5:59 PM

    • CrispinH
    • Top 500 Contributor
    • Joined on 09-17-2008, 11:10 AM
    • Posts 10

    VS2008 debugging problems

    I'm attempting to debug VB ASP.NET websites within IIS7 using VS2008 SP1 on Vista 64-bit Ultimate but getting the message "Unable to start debugging on the web server. IIS does not list a web site that matches the launched URL".

    The next test was to run the website using the file system rather than IIS – that works, so it looks like an IIS7 config setting that is the problem.

    So next I ran:
    %systemroot%\system32\inetsrv\APPCMD list sites
    To see if my test site was present – and it is.

    I'm reasonably sure that debugging has worked in the past, but can't be absolutely sure because I've been doing WinForms stuff recently and websites on a Windows XP using VS2005 but not websites on Vista using VS2008. However for the Vista/VS2008 development I have installed .NET Framework 3.5 SP1 - so that may be a factor. Also I’ve installed the URL Rewrite module (though I did remove it temporarily whilst having these problems).

    Apart from that I've done all the usual things like run in Administrator mode, enabled Windows Authentication, HTTP Keep Alives are enabled per http://ryanfarley.com/blog/archive/2005/08/23/8540.aspx.

    The developer learning page at http://learn.iis.net/page.aspx/387/using-visual-studio-2008-with-iis-70/ goes through creating a website with VS2008 but this didn’t bring me any nearer a solution.

    The page at http://msdn.microsoft.com/en-us/library/dwesw3ee(VS.80).aspx does not cover Vista and VS2008 (at this time) and there appear to be some material differences.

    On VS2003 there used to be a webinfo file that ensured that the debugger could reference the project file, but that now seems obsolete.

    What magic setting will finally persuade VS 2008 to start debugging these VB ASP.NET sites?

    TIA

    Crispin

  • 10-07-2008, 7:40 AM In reply to

    • CrispinH
    • Top 500 Contributor
    • Joined on 09-17-2008, 11:10 AM
    • Posts 10

    Re: VS2008 debugging problems

    I raised an incident with Microsoft in order to solve this one. 

    The solution (or perhaps workaround) is to ensure that a specific IP address is not selected in IIS7 Site Bindings.  If you have more than one IP address, don't be tempted to specify it, but leave it on the setting All unassigned.

    Although I have only one IP address set in the computer's network settings, VMware Workstation creates more and since I like to be exact, I selected the 'proper' IP address when I set up the website - this caused the problem.

    At the moment I can't tell if using the All unassigned setting is going to have side effects, but so far debugging is working.  If I find out how to select an IP address without debugging going dolalley, I'll report back.

    Crispin

     

Page 1 of 1 (2 items)
Page view counter