Microsoft KB Archive/319842

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

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 &quot;localhost&quot; 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:
 * Open Internet Explorer. On the Tools menu, click Internet Options.
 * On the Security tab, click to select Internet in the list of Web content zones, and then click Custom Level.
 * 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.



Steps to Reproduce the Behavior
 Change the security settings for the Internet zone to use Automatic logon only in Intranet zone. To do this:  Open Internet Explorer. On the Tools menu, click Internet Options. On the Security tab, click to select Internet in the list of Web content zones, and then click Custom Level. Scroll to the bottom of the Settings list. Under User Authentication, locate Logon, and then click to select Automatic logon only in Intranet zone. </li> 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).</li> Press F5 to start debugging.</li></ol>

<div class="references_section">