Issues with VS2005/2008 and debugging IIS
Ran into a problem at work today with IIS and Visual Studio not playing nice together. Kept getting an error saying something to the effect of the following:
"Unable to start debugging on the web server. An Authentication error occured while communicating with the web server"
There seems to be a few things that can cause this one, I'm going to put them here for posterity.
One is due to local loopback checking. This issue occurs when the Web site uses Integrated Authentication and has a name that is mapped to the local loopback address. Here is Microsoft's fix for it.
In my case I have a local website running and about 17 localhost aliases. This is definitely part of my issue. Still doesn't fix the error.
Next thing on the list is a badly configured version of the .Net 1.1 or 2.0 frameworks. Recommended treatments is to try and reinstall the correct framework version on the box by running the aspnet_regiis.exe -i command, some people recommended going one step further and go ahead and nuke the ASPNET user before completing this step.
If this still doesn't get you around it, there is yet another thing you can look at. This is the one that really tripped me up. In your local IIS settings, there is an HTTP Keep Alive setting, the check box for this setting MUST BE ENABLED for the debugger to properly attach. If you have disabled this to enhance your performance for AJAX/jQuery execution, then you will no longer be able to use the Visual Studio debugger as intended.
Once I reenabled this switch, and reset iis (IISRESET from the command prompt) the issue went away and I was able to debug properly once more.
Hope this helps someone else out there.
Labels: Debugging, Development, IIS, Visual Studio


0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home