Thursday, June 28, 2007

Fix: Unable to start debugging on the web server. Debugging failed because integrated Windows authentication is not enabled

FIX: Error message when you try to debug an ASP.NET 2.0 application in Visual Studio 2005 on a Windows Vista-based computer: "Unable to start debugging on the web server. Debugging failed because integrated Windows authentication is not enabled"

SYMPTOMS
In Windows Vista Home Basic or in Windows Vista Home Premium, you create a Microsoft ASP.NET 2.0 application by using Internet Information Services (IIS) 7.0. When you try to debug the application in Microsoft Visual Studio 2005, you receive the following error message:
Unable to start debugging on the web server. Debugging failed because integrated Windows authentication is not enabled. Please see Help for assistance.

CAUSE
This problem occurs because Windows Vista Home Basic and Windows Vista Home Premium do not contain the Windows Authentication module for IIS. When the client tries to automatically attach the debugger in an ASP.NET 2.0 application, the client sends a HTTP request that contains the DEBUG verb. This HTTP request is used to verify that the process of the application is running and to select the correct process to attach. This HTTP request must be authenticated by using Windows Authentication. However, Windows Vista Home Basic and Windows Vista Home Premium do not contain the Windows Authentication module for IIS. Therefore, the problem that is described in the 'Symptoms" section occurs.


RESOLUTION
Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Visual Studio 2005 service pack that contains this hotfix.

Download the Hotfix here: http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=7250

No comments: