System.ApplicationException: Access is denied...

Problem

You get this error when running your application:

Server Error in ‘/’ Application.

Access is denied.

Description:  An unhandled exception occurred during the execution of the current web request.  Please review the stack trace for more information about the error and where it originated in the code.

Exception Details:  System.ApplicationException: Access is denied.

Source Error:

Information regarding the origin and location of the exception can be identified using the exception stack trace below.

System.ApplicationException: Access is denied

This error can occur if you are using Microsoft Windows 2000 configured as a Domain Controller with service pack SP4.

Solution

Microsoft offers a workaround for this error in this Microsoft Knowledge Base article:

http://support.microsoft.com/?kbid=824308

Title: BUG: IWAM Account Is Not Granted the Impersonate Privilege for ASP.NET 1.1 on a Windows 2000 Domain Controller with SP4

See Also

Part VII:  Troubleshooting Applications

Application Will Not Run

Application Runs But No Data is Displayed

Application Error Messages