IIS 7 and Above
Authentication error when starting debugging
Last post Jul 13, 2007 02:01 AM by steve schofield
Jul 06, 2007 07:32 PM|Ben Amada|LINK
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,
Jul 07, 2007 12:16 AM|steve schofield|LINK
Known bug. Here is the hotfix.
Windows Server MVP - IIS
Log archival solution
Install, Configure, Forget
Jul 07, 2007 06:01 PM|Ben Amada|LINK
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!
Jul 12, 2007 01:54 AM|steve schofield|LINK
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.
Jul 12, 2007 03:53 PM|Ben Amada|LINK
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.
Jul 13, 2007 02:01 AM|steve schofield|LINK
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.