Re: ASPNET directory access on server denied

From: Raterus (raterus_at_spam.org)
Date: 07/27/04


Date: Tue, 27 Jul 2004 17:34:12 -0400

Tell him that the ASPNET user is on good only on the webserver, if he wants to access a network resource, he'll have to impersonate a valid domain user.

"Andrew" <Andrew@discussions.microsoft.com> wrote in message news:EB1E5B4D-42F5-4060-8D33-857CF135BA6D@microsoft.com...
> Hello, I am a network admin, not a developer, but one of our developers is having trouble with some code and he is asking me for help. So I appologize if some things that I am saying don't sound right.
>
> When making a request to a network server from his local machine that he tests from, he is getting this error:
>
> ---------------------------------------------------------------------------
>
> Exception Details: System.UnauthorizedAccessException: Access to Path "<path>" is denied.
>
> The ASP.NET process is not authorized to access the requested resource. For security reasons the default ASP.NET process identity is '{machinename}\ASPNET', which has limited privelages. Consider granting access rights to the resource to the ASP.NET process identiy.
>
> 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 "{machinename}\ASPNET user. Highlight the ASP.NET account, and check the Write box in the Allow column.
>
> -----------------------------------------------------------------------------------------
>
> The problem is, when following these directions, I go to the resource (dir on the server) and open the security tab and try to add his {machinename}\ASPNET account to the list, I get this error:
>
> The Object {machinename}\ASPNET is not valid because only objects from domains that appear in the "Look in" box are allowed.
>
> Well the machine is in that domain, so I am completely lost. Anybody have any ideas?



Relevant Pages

  • Re: File Creation on Network
    ... You know that in ASPNET all things are done by the ASPNET user, ... I am facing some challenges in creating a folder in the file server on ... The application will create a folder on the network ... My network user account has read/write access to the network folder. ...
    (microsoft.public.dotnet.general)
  • Accessing Files on a Network Share
    ... Currently the only way I can figure to keep this working is to keep the aspnet user password on both machines sync'd up, which is problematic since patches often cause the ASPNET user account's password to regenerate. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Access denied in creating/opening a file on network for output
    ... You should try granting access to that folder to the ASPNET user. ... Ariel Popovsky ... > I tried to open a new file on network for output: ...
    (microsoft.public.dotnet.framework.aspnet)
  • GetLastWriteTime for files on network
    ... files on our network. ... ASP.NET apps run under the ASPNET user local to the Web server, ... and I can't add the ASPNET user to the Windows groups which have permission ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Replication as a Performance Enhancer?
    ... And, if there is a need to have them work with multiple reocrds, but that's ... Or, alternativesly, can put each subform on its own tab in a tabbed ... leading me to believe the network has a lot to do with it. ... was bring in the MDW file to his local machine, ...
    (comp.databases.ms-access)