PRB: "Access Is Denied" Error Message When You Use System.Diagnostics.Debugger.Break in an ASP.NET Application (817035)
The information in this article applies to:
- Microsoft ASP.NET (included with the .NET Framework 1.1)
- Microsoft ASP.NET (included with the .NET Framework) 1.0
SYMPTOMSWhen you use the System.Diagnostics.Debugger.Break method to
invoke a just-in-time (JIT) debugging window in an ASP.NET application, you may
receive the following error message: JIT Debugging
failed with the following error: Access is denied. JIT Debugging was
initiated by the user account 'ServerName\ASPNET'. Check the documentation index for 'Just-in-time
debugging, errors' for more information. Note ServerName is the name of your Web
server. CAUSEBy default, the ASP.NET worker process runs under the ASPNET user account.
This ASPNET account does not have the user right to invoke JIT by
using the System.Diagnostics.Debugger.Break method unless the account is added to
the Debugging Users group.RESOLUTIONTo resolve this problem, add the ASPNET user account to the Debugger
Users group or run the ASP.NET worker process under another user account that
has debugging rights. To add the ASPNET user account to the Debugger Users group, follow these steps: - Click Start, point to
Programs, point to Administrative Tools, and
then click Computer Management.
- In Computer Management, expand System Tools, expand Local Users
and Groups, and then expand
Groups.
- Double-click Debugger Users.
- In the Debugger Users Properties dialog
box, click Add.
- In the Select Users or Groups dialog box,
type ServerName\ASPNET in the text box, and then click
OK two times.
- Close the Computer Management
tool.
- Create an ASP.NET Web Application project, as explained in
the steps 1 through 4 of the "More Information" section.
- Type the following URL in the browser:
http://ServerName/JitTest/WebForm1.aspx Note ServerName is name of the Web server.
Verify that the expected JIT window is invoked. Important By adding users to the Debugger Users group, you might create a security
risk because you are allowing those users to gain access to your computer. Only add those
users who must have debugger access on that specific computer. It is not a good idea to add Everyone to the Debugger Users
group. STATUS This
behavior is by design.REFERENCES
For additional information, click the following article number to view the
article in the Microsoft Knowledge Base: 318041
HOW TO: Set Up and Use Remote Debugging in Microsoft Visual Studio .NET
For more information, visit the following
Microsoft Web site:
Modification Type: | Major | Last Reviewed: | 4/17/2003 |
---|
Keywords: | kberrmsg kbJIT kbDebug kbWebForms kbprb KB817035 kbAudDeveloper |
---|
|