Where is the built-in ASP.NET account?



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.

Got 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 above 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

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

I'm using II 6.0

Any suggestions would be appreciated.

Thanks.

bebop



.



Relevant Pages

  • 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)
  • ASP.NET and creating a word document
    ... to the ASP.NET request identity. ... Network Service on IIS 6) that is used if the application ... If the application is impersonating ...
    (microsoft.public.dotnet.framework.interop)
  • ADODB.NET and "Access Denied"
    ... I have an ASP.NET page writtein in VB that uses ADODB. ... granting access rights to the resource to the ASP.NET request identity. ... If the application is impersonating via <identity ... Highlight the ASP.NET account, and check the ...
    (microsoft.public.dotnet.framework.aspnet)
  • System.UnauthorizedAccessException //got stuck
    ... added this account to all admin groups. ... granting access rights to the resource to the ASP.NET request identity. ... Network Service on IIS 6) that is used if the application is not ... If the application is impersonating via <identity ...
    (microsoft.public.dotnet.languages.csharp)
  • System.UnauthorizedAccessException //got stuck
    ... added this account to all admin groups. ... granting access rights to the resource to the ASP.NET request identity. ... Network Service on IIS 6) that is used if the application is not ... If the application is impersonating via <identity ...
    (microsoft.public.inetserver.iis.security)