RE: ASPNET account doesn't exist on Windows Server 2003

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I've had the same problem with a slightly different twist.

I've installed W2K3 several times on a single machine, over the past year.
To the best of my knowledge, I've done so the same way each time: generally,
taking default settings.

However, after some of these installs, I can and after some other installs,
I can not find the ASPNET account. Other accounts such as NETWORK SERVICE and
IIS WPG are present in both situations.

???????

"cwbp17" wrote:

> 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: 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: 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: IIS and ASP.NET authentication
    ... I am doing no authentication in ASP.NET so I set ... In IIS I set anonymous and using an account test/test. ... >> does not exist in Windows IIS will refuse the request. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • 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)
  • 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)