Success comes after thinking and thinking comes after failure.

Friday, January 16, 2009

Unable to start debugging on the web server. Debugging failed because integrated Windows authentication is not enabled. Please see Help for assistance

"Unable to start debugging on the web server. Debugging failed because integrated Windows authentication is not enabled. Please see Help for assistance."

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 above mentioned error message:

The cause for the error is:
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 above section occurs.
To download this hotfix from the MSDN Code Gallery, visit the following Microsoft Web site:

http://code.msdn.microsoft.com/KB937523

Prerequisites
You must have Visual Studio 2005 Service Pack 1 (SP1) installed to apply this hotfix.
Restart requirement

You do not have to restart the computer after you apply this hotfix. But I did it :)

Happy coding.
Vikas

1 comment: