PRB: "Unable to start debugging on the Web server" error message when you debug ASP.NET applications (306165)



The information in this article applies to:

  • Microsoft ASP.NET (included with the .NET Framework 1.1)
  • Microsoft Visual Studio .NET (2003), Academic Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2003), Professional Edition
  • Microsoft ASP.NET (included with the .NET Framework) 1.0
  • Microsoft Visual Studio .NET (2002), Academic Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio 2005 Standard Edition

This article was previously published under Q306165

SYMPTOMS

When you debug an ASP.NET application in Visual Studio .NET, you may receive the following error message:
Error while trying to run project : Unable to start debugging on the web server. Would you like to disable future attempts to debug ASP.NET pages for this project?
In Visual Studio 2005 .NET, you receive 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.

CAUSE

This error occurs because Microsoft Internet Information Server (IIS) is not running or is not functioning properly.

RESOLUTION

To resolve this problem, you must restart IIS. To do this, type iisreset at a command prompt.

Make sure that the IIS application is configured to use Integrated authentication so it will pass your credentials that are needed to launch the debugger. The anonymous account does not have sufficient permissions to perform debugging.

REFERENCES

For more general information about ASP.NET, refer to the following MSDN newsgroup:

Modification Type:MinorLast Reviewed:5/2/2006
Keywords:kbDebug kberrmsg kbprb KB306165