Microsoft KB Archive/319842

From BetaArchive Wiki

Article ID: 319842

Article Last Modified on 7/29/2005



APPLIES TO

  • Microsoft Visual Studio .NET 2003 Professional Edition
  • Microsoft Visual Studio .NET 2003 Enterprise Architect
  • Microsoft Visual Studio .NET 2003 Enterprise Developer
  • Microsoft Visual Studio .NET 2003 Academic Edition
  • Microsoft Visual Studio .NET 2002 Professional Edition
  • Microsoft Visual Studio .NET 2002 Enterprise Architect
  • Microsoft Visual Studio .NET 2002 Enterprise Developer
  • Microsoft Visual Studio .NET 2002 Academic Edition
  • Microsoft ASP.NET 1.1
  • Microsoft ASP.NET 1.0



This article was previously published under Q319842

SYMPTOMS

When you try to debug a Microsoft ASP.NET Web Application project that was created by using the IP address or full computer name for the location, you may receive the following error message:

Error while trying to run project: Unable to start debugging on the Web server. You do not have permissions to debug the server.

Verify that you are a member of the 'Debugger Users' group on the server. Would you like to disable future attempts to debug ASP.NET pages for this project?

CAUSE

Using the IP address or full computer name (including the domain) maps the URL to the Internet zone in Microsoft Internet Explorer. If your security settings for the Internet zone are not set to Automatic logon with current username and password, authentication may be unsuccessful and you may receive this error message.

RESOLUTION

To work around this issue, do one of the following:

  • Do not use an IP address or full computer name (for example, computername.domainname.coname.com) when you create your ASP.NET Web Application project. Instead, you can use either "localhost" or the computer name without the domain name (for example, computername).
  • Change the security settings for the Internet zone in Internet Explorer to use Automatic logon with current username and password. To do this:
    1. Open Internet Explorer. On the Tools menu, click Internet Options.
    2. On the Security tab, click to select Internet in the list of Web content zones, and then click Custom Level.
    3. Scroll to the bottom of the Settings list. Under User Authentication, locate Logon, and then click to select Automatic logon with current username and password.


STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Change the security settings for the Internet zone to use Automatic logon only in Intranet zone. To do this:
    1. Open Internet Explorer. On the Tools menu, click Internet Options.
    2. On the Security tab, click to select Internet in the list of Web content zones, and then click Custom Level.
    3. Scroll to the bottom of the Settings list. Under User Authentication, locate Logon, and then click to select Automatic logon only in Intranet zone.
  2. In Visual Studio .NET, create a new Visual C# ASP.NET Web Application project by using the IP address of your server computer (for example, http://xxx.xxx.xxx.xxx/Webapplication1).
  3. Press F5 to start debugging.


REFERENCES

For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base:

306165 PRB: 'Unable to Start Debugging on the Web Server' Error Message When You Debug ASP.NET Applications


306169 PRB: Visual Studio .NET Debugger Does Not Stop on Breakpoints When You Debug ASP.NET Pages


306172 INFO: Common Errors When You Debug ASP.NET Applications in Visual Studio .NET


316726 HOW TO: Debug an ASP.NET Web Application



Additional query words: kbwamDebug

Keywords: kbbug kbdebug kbvs2002sp1sweep KB319842