Access is denied

From: Scott Sivorn (ssivorn_at_bolidenmkm.co.uk)
Date: 06/23/03


Date: Mon, 23 Jun 2003 04:09:05 -0700


I have installed from a clean installation WinXP, and
visual studio (2003) and all associated patches. I have
created a sample application that uses the
Server.CreateObject method. The following is the error i
continually receive whatever i try to do. The ASP account
has every privilege it can be given yet the error is still
received, i have also tried tweaking the privileges for
the IIS account.

This is the same installation as on a Win2K machine which
has no problems at all.

Does anyone have any ideas that could shed some light on
this? Or know what could be causing the problem?

Server Error in '/WebApplication1' 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.UnauthorizedAccessException:
Access is denied.

ASP.NET is not authorized to access the requested
resource. Consider granting access rights to the resource
to the ASP.NET request identity. ASP.NET has a base
process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6) that is used if the application
is not impersonating. If the application is impersonating
via <identity impersonate="true"/>, the identity will be
the anonymous user (typically IUSR_MACHINENAME) or the
authenticated request user.

To grant ASP.NET write access to a file, right-click the
file in Explorer, choose "Properties" and select the
Security tab. Click "Add" to add the appropriate user or
group. Highlight the ASP.NET account, and check the boxes
for the desired access.



Relevant Pages

  • RE: Win 2000 service needs to access Win 2003 Web Server data
    ... Service that simply runs in the background getting data from the IIS logfiles ... simply running under the admin account that I set it up to run under. ... However, when a request for network access is sent from an web application, ... Microsoft Online Partner Support ...
    (microsoft.public.win32.programmer.networks)
  • Re: localhost is all that will work
    ... I've done with IIS or something else ... installed IIS 6.0 from Windows installation. ... > 400 Bad Request usually means that the client is sending a bad request, ...
    (microsoft.public.inetserver.iis)
  • Re: Server Error in /MyWebForm Application
    ... IIS has a service account: ... the default is for you request to run under the asp.net account ... if the web site is anonymous, then the IIS security token is the iis account ... > Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Windows Server 2003 Ent. Certificate Services Webenroll
    ... Enrollment Suport in machine B. Installation succeed ok. ... You try to request a new certificate for you. ... necessary to create on local account on both machine A and B wiht the ...
    (microsoft.public.windows.server.security)
  • RE: ASPNET account doesnt exist on Windows Server 2003
    ... However, after some of these installs, I can and after some other installs, ... I can not find the ASPNET account. ... IIS WPG are present in both situations. ... > granting access rights to the resource to the ASP.NET request identity. ...
    (microsoft.public.windows.server.general)