ASPNET account doesn't exist on Windows Server 2003

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I've reinstalled my Windows 2003 server and VS2003 without much luck on
finding this ASP.NET account. Using IIS 6.0.

My c# application requires access to read a file (C:\\Test.jpg) from the
file system.

Keep receiving the following error:

***********
General access denied error

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: General access denied
error

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 IIS6) 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
appopriate user or group. Highlight the ASP.NET account, and check the boxes
for the desired access.

*******

I tried impersonation by putting the following in the web.config file of my
application: the user has administrative privileges

<identity impersonate="true" userName="username" password="password" />

That didn't work. Kept receiving the same error.

I then found the following to try to recreate the ASP.NET account using the
run command:

%systemroot%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe /i

that didn't work either because aspnet_regiis.exe works with XP not Windows
Server 2003.

Could anyone help me with this? Is there a solution on finding this ASP.NET
account on Windows Server 2003?

I'm using IIS 6.0.

Any suggestions would be appreciated.

Thanks.

bebop

.



Relevant Pages

  • RE: file permissions
    ... log of the request and look for an ACCDENIED. ... you what the user account is that is being denied access and where they are ... >An unhandled exception was generated during the execution ... >using the exception stack trace below. ...
    (microsoft.public.dotnet.framework.aspnet.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: Sample Logon Script
    ... Re-entered push account and here is some of the CCM.log ... Stored request "ZRWKSHYMAN", machine name "ZRWKSHYMAN", ... Getting a new request from queue "Retry" after 100 ...
    (microsoft.public.sms.admin)
  • Re: Sample Logon Script
    ... Check to make sure the account specified has local admin rights on the ... >>> Getting a new request from queue "Retry" after 100 ...
    (microsoft.public.sms.admin)
  • Re: MBNA Visa authorized user account problem
    ... Recently I sent MBNA a certified mail return receipt requested letter ... challenging the debt according to the criteria of the Fair Credit ... I would be making my request to write-off the ... around the time I requested the account be frozen. ...
    (misc.consumers)