Error message when you try to attach the Visual Studio 2005 debugger to a process: "Unable to attach to the process. Access is denied" (907290)
The information in this article applies to:
- Microsoft Visual Studio 2005 Standard Edition
- Microsoft Visual Studio 2005 Professional Edition
- Microsoft Visual Studio 2005 Express Edition
- Microsoft Visual Studio 2005 Team System Architect Edition
- Microsoft Visual Studio 2005 Team System Developer Edition
- Microsoft Visual Studio 2005 Team System Test Edition
- Microsoft Visual Studio 2005 Team System Team Foundation:
- Microsoft Visual Studio 2005 Tools for the Microsoft Office System
Important This article contains information that shows you how to help lower security settings or how to turn off security features on a computer. You can make these changes to work around a specific problem. Before you make these changes, we recommend that you evaluate the risks that are associated with implementing this workaround in your particular environment. If you implement this workaround, take any appropriate additional steps to help protect your system. SYMPTOMSWhen you try to attach the Microsoft Visual Studio 2005 debugger to a process, you receive the following error message: Unable to attach to the process. Access is denied. Note This behavior does not occur when you are using an administrator account. CAUSEThis behavior occurs when the process that you are trying to debug is running under a different user account. Microsoft Windows prevents the Visual Studio 2005 debugger from attaching to a process that is running under a different user account.WORKAROUNDTo work around this behavior, use one of the following methods. Method 1. Use an administrator accountLog on to the computer as a user who has administrative credentials. Then try to attach the Visual Studio 2005 debugger to the process. Method 2. Enable users to attach the debugger to a process that is running under a different user accountWarning This workaround may make your computer or your network more vulnerable to attack by malicious users or by malicious software such as viruses. We do not recommend this workaround but are providing this information so that you can implement this workaround at your own discretion. Use this workaround at your own risk. Configure Windows to enable users who are not administrators to attach the Visual Studio 2005 debugger to a process that is running under a different user account. Warning Because of the security risks involved, we recommend that you do not give users permission to attach to a process that is running under a different user account. A user who is granted permission to attach to a process that is running under a different user account can gain control of the computer. Note This workaround grants the SeDebugPrivilege user right to the debugger user. To enable users who are not administrators to attach the Visual Studio 2005 debugger to a process that is running under a different user account, follow these steps: - Log on to the computer as a user who has administrative credentials.
- Click Start, click Run, type Control admintools, and then click OK.
- Double-click Local Security Policy.
- In the Local Security Settings dialog box, click Local Policies, double-click User Rights Assignment, and then double-click Debug programs.
- In the Debug programs Properties dialog box, click Add User or Group.
- In the Select User or Groups dialog box, type the name of the user or group for whom you want to grant permissions, and then click OK two times.
- On the File menu, click Exit to close the Local Security Settings dialog box.
STATUS This behavior is by design.
Modification Type: | Major | Last Reviewed: | 7/10/2006 |
---|
Keywords: | kbtshoot kbprb KB907290 kbAudDeveloper |
---|
|