System.UnauthorizedAccessException //got stuck

From: genc_ymeri (genc_ymeri_at_hotmail.com)
Date: 03/08/05


Date: Tue, 8 Mar 2005 14:10:35 -0500

Hi,
I'm getting constatly an error and I'm not sure where it is coming from.
>From the message it seems like ASP.Net build in account does not have all
the rights but I manually added all possible rgiht to that folder and I
added this account to all admin groups.

I did reinstall VS.2003 on win2003 which is PDC (not the best config, I
know)

Any idea how to fix this, I really can't do anywork with it anymore,,,

Pls help.
Genc.

PS:
Error Description:
Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\webapplication1\0ce05c64\4984f2c7" 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 to the path
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\webapplication1\0ce05c64\4984f2c7" 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: impersonating a user
    ... Impersonating the user seems only to last ... applications, IIS will read the HTTP, and when anonymous is selected IIS ... Local System account (which is the default account for Services that are ... impersonation and authentication very clearly. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Sample Logon Script
    ... > Re-entered push account and here is some of the CCM.log ... > Submitted request successfully SMS_CLIENT_CONFIG_MANAGER ... > name "ZRWKSHYMAN", in queue "Processing". ... > ---> Trying each entry in the SMS Client Remote ...
    (microsoft.public.sms.admin)
  • 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: Word 2003 and DotNet
    ... You could give enough priveleges to asp.net account though I don't recommend ... reports in word programmatically directly in a Word document. ... If the application is impersonating via <identity ... IUSR_MACHINENAME) or the authenticated request user. ...
    (microsoft.public.dotnet.general)

Loading