Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

BUG: Permissions error when you try to debug an ASP.NET Web application in Visual Studio .NET


View products that this article applies to.

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?

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


Status

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

↑ Back to the top


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.

↑ Back to the top


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

↑ Back to the top


Keywords: kbvs2002sp1sweep, kbbug, kbdebug, KB319842

↑ Back to the top

Article Info
Article ID : 319842
Revision : 11
Created on : 7/29/2005
Published on : 7/29/2005
Exists online : False
Views : 494