Article ID: 817035 - View products that this article applies to.
When 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:
Note ServerName is the name of your Web server.
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.
By 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.
To 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:
Steps to Reproduce the Behavior
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
318041For more information, visit the following Microsoft Web site:
(http://support.microsoft.com/kb/318041/EN-US/ )HOW TO: Set Up and Use Remote Debugging in Microsoft Visual Studio .NET