"Access denied" Error Message When You Run an ASP.NET 1.0 Application in IIS 6.0

Full Knowledge Base (KB) Article: http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q817033

The information in this article applies to:

  • Microsoft ASP.NET (included with the .NET Framework) 1.0, when used with:
      the operating system: Microsoft Windows Server 2003
      Microsoft Internet Information Services version 6.0
SYMPTOMS
When you run an ASP.NET Web Application project on a computer running Windows Server 2003 with the .NET Framework 1.0 installed, and the Internet Information Services (IIS) 6.0 is running in IIS 5.0 isolation mode, you may receive the following error message if you do not grant the seImpersonatePrivilege function to the ASPNET account:
System.Web.HttpException: Access denied to 'd:\inetpub\wwwroot\ImpersonateTest\WebForm1.aspx'. Failed to start monitoring file changes.
RESOLUTION
To resolve this problem, grant the seImpersonatePrivilege to your ASPNET account. To do so, follow these steps:
  1. Click Start, point to Settings, and then click Control Panel.
  2. Double-click Administrative Tools.
  3. Double-click Local Security Policy. Under Local Policies, click User Rights Assignment.
  4. In the details pane, double-click Impersonate a client after authentication.
  5. Click Add, and then assign the permission to the local account that you name ASPNET.
  6. Open a command prompt, and then type iisreset.

STATUS

This behavior is by design.

No Comments