You may receive an "Access is denied" error message when you try to debug a Web application in Visual Studio .NET, and you have administrative permissions (894433)
The information in this article applies to:
- 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 .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.1)
- Microsoft ASP.NET (included with the .NET Framework) 1.0
- Microsoft Windows XP Service Pack 2
SYMPTOMSYou may receive the following error message when you try to
debug a Web application: Access is Denied The
problem occurs when the following conditions are true: - You are logged on to your computer with administrative
permissions.
- You are debugging a Web application in Microsoft Visual
Studio .NET.
- The operating system that you are using is Microsoft
Windows XP Service Pack 2.
- The Microsoft ASP.NET worker process account is not a
member of the Administrators group.
CAUSEThe problem occurs because the ASP.NET worker process does
not have the Impersonate a client after authentication user right. If the worker process account does not have this
right, the debugger cannot attach to the process. The worker process account is
configured by using the processModel element in the Machine.config file.RESOLUTION To give the worker process account the Impersonate a client after authentication user right, follow these steps: - Click Start, point to
Settings, and then click Control
Panel.
- Double-click Administrative
Tools.
- Double-click Local Security
Policy.
- Expand Security Setting, expand
Local Policies, and then click User Rights
Assignment.
- In the Policy pane, right-click
Impersonate a client after authentication, and then click
Properties.
- Click Add User or Group.
- Add the worker process account that is configured in the processModel element in the Machine.config file.
- Click OK two times.
- Click Start, click Run,
type iisreset, and then click
OK.
- At a command prompt, type the following command to refresh
policies on the computer:
REFERENCESFor more information about developing software in Visual
Studio .NET that has non-administrative permissions, visit the following
Microsoft Developer Network (MSDN) Web site:
Modification Type: | Major | Last Reviewed: | 8/30/2005 |
---|
Keywords: | kbvs2002sp1fix kbvs2002sp1sweep kberrmsg kbprb kbpermissions kbIIS kbtshoot kbBug kbfix KB894433 kbAudDeveloper kbAudITPRO |
---|
|