Help and Support
 

powered byLive Search

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

Article ID:319842
Last Review:July 29, 2005
Revision:7.3
This article was previously published under Q319842
On This Page

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:
a. Open Internet Explorer. On the Tools menu, click Internet Options.
b. On the Security tab, click to select Internet in the list of Web content zones, and then click Custom Level.
c. 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 (http://support.microsoft.com/kb/306165/EN-US/) PRB: 'Unable to Start Debugging on the Web Server' Error Message When You Debug ASP.NET Applications
306169 (http://support.microsoft.com/kb/306169/EN-US/) PRB: Visual Studio .NET Debugger Does Not Stop on Breakpoints When You Debug ASP.NET Pages
306172 (http://support.microsoft.com/kb/306172/EN-US/) INFO: Common Errors When You Debug ASP.NET Applications in Visual Studio .NET
316726 (http://support.microsoft.com/kb/316726/EN-US/) HOW TO: Debug an ASP.NET Web Application

Back to the top


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

Back to the top

Keywords: 
kbvs2002sp1sweep kbbug kbdebug KB319842

Back to the top

Article Translations

 

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.