Previous Next

Thread: Authentication error when starting debugging

Last post 07-13-2007 2:01 AM by steve schofield. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 07-06-2007, 7:32 PM

    Authentication error when starting debugging

    Hi.  I'm using VS 2005 SP1 on Vista / IIS7.  I've setup my application in IIS7 to use the new Integrated pipeline mode.  However, when starting the application in VS2005 with F5, I get the following error message:

    "Unable to start debugging on the web server. An authentication error occurred while communicating with the web server. Please see Help for assistance."

    I've trying running VS2005 as an administrator, and even disabled UAC, but am still getting the error.  In IIS7, I have Anonymous and Windows authentication enabled.

    I can start the application in VS2005 with Ctrl-F5 (no debugging) and then later "Attach to Process".  This works, however, when I try to set a breakpoint, I'm getting a small exclamation icon with a tooltip message stating "The breakpoint will not currently be hit. No symbols have been loaded for this document."

    Ultimately, I'd like to solve the first problem so I can just start debugging with the standard F5.  I'm all out of ideas.

    Any help is greatly appreciated.

    Thanks in advance,
    Ben

  • 07-07-2007, 12:16 AM In reply to

    Re: Authentication error when starting debugging

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield

    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 07-07-2007, 6:01 PM In reply to

    Re: Authentication error when starting debugging

    Hi Steve,

    Thank you, the hotfix solved the problem.  Actually, I've ran into a new problem after applying the hotfix which I have a workaround for, but thought I would just pass it by you in case any ideas come to mind  :-)

    In my VS 2005 project settings, I've had the "Start Action" on the "Web" tab set at "Current Page".  After applying the hotfix, if the 'current page' is in a sub-directory when I hit F5, I get the following error msg:

    "Unable to start debugging on the web server. IIS does not list an application that matches the launched URL."

    However, if the 'current page' is in the root of my application, then everything works fine.

    In IIS7, I tried making this sub-directory an "application" by right-clicking on the root application name, selected 'Add Application...' and chose the sub-directory.  This changes the icon of the sub-directory in IIS7 from a folder icon to an application icon.  I can then use F5 in visual studio ... but I immediately get a "could not load type" parser error in my browser essentially saying that the class the page inherits from cannot be found.  So, I'm fairly certain this is not the correct way to solve the problem.

    My workaround is to simply change the 'Start Action' from 'Current Page' to 'Specific Page', and then not enter a specific page.  Since I have directory browsing turned on, I simply get a list in my browser of the available folders / files when starting with F5.  This is not really a big deal to just navigate to the folder / page I'm interested in.  Although, I would imagine a fix to the "IIS does not list an application that matches the launched URL" error message is probably right under my nose.

    Thanks again for your response!
    Ben

  • 07-12-2007, 1:54 AM In reply to

    Re: Authentication error when starting debugging

    Bump.  Hopefully Mike V (mvolo.com) sees this post.  I'm not sure why you would have to do what you are describing.  Thanks for passing along your workaround.

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield

    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 07-12-2007, 3:53 PM In reply to

    Re: Authentication error when starting debugging

    Hi Steve.  I'm fairly certain that this error is not a problem with IIS, but more a flaw with Visual Studio -- perhaps an untested side effect from the hotfix.  I noticed a comment from Brian Kuhn on ScottGu's blog at the link below (same link you gave me) who appears to have run into the same error.

    http://weblogs.asp.net/scottgu/archive/2007/06/27/public-hotfix-patch-available-for-debugging-asp-net-on-iis7.aspx

    Thanks again,
    Ben

  • 07-13-2007, 2:01 AM In reply to

    Re: Authentication error when starting debugging

    Thanks for sharing the link.  I'm pretty certain ScottGU and the IIS Team is aware of this.  Even though they haven't posted on this thread, they stay pretty current and are always on the lookout for postings like this.  I wish I had a better answer, but at least you have a workaround.  Which, at least helps keep you moving forward.  Take care.

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield

    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
Page 1 of 1 (6 items)
Page view counter