Windows 2003 server ASPNET user rights issue

Discussion in 'ASP .Net' started by RJN, Apr 6, 2005.

  1. RJN

    RJN Guest

    Hi

    The web application is running on the Windows 2003 server environment.
    The virtual directory is mapped to say
    "C:\Inetpub\wwwroot\MyApplication" directory. When we try to create a
    file and save it to the .\MyApplication directory, we get the folowing
    error

    Could not find a part of the path "C:\"

    We have given read/write permissions to MyApplication directory for the
    ASPNET user. Surprisingly same works fine in Windows 2000 professional.
    Any idea what else needs to be done?

    Regards

    rjn


    *** Sent via Developersdex http://www.developersdex.com ***
    RJN, Apr 6, 2005
    #1
    1. Advertising

  2. RJN

    James Steele Guest

    Hi rjn,

    Are you using impersonation for the indentity?

    <identity impersonate="true" username="user" password="password"/>.

    If so you will have to grant the permissions to the impersonated user
    as you have suggested above.

    Are you accessing the path using the UNC name of the server?

    File = \\server\share
    <file:///\\server\share>
    James Steele, Apr 6, 2005
    #2
    1. Advertising

  3. RJN

    Scott Allen Guest

    In Windows 2003 the worker process actuall executes under the NETWORK
    SERVICE account, not ASPNET. If you grant the same permissions to
    NETWORK SERVICE you'll see everything work, I'd imagine.

    HTH,

    --
    Scott
    http://www.OdeToCode.com/blogs/scott/

    On Wed, 06 Apr 2005 07:24:23 -0700, RJN <> wrote:

    >Hi
    >
    >The web application is running on the Windows 2003 server environment.
    >The virtual directory is mapped to say
    >"C:\Inetpub\wwwroot\MyApplication" directory. When we try to create a
    >file and save it to the .\MyApplication directory, we get the folowing
    >error
    >
    >Could not find a part of the path "C:\"
    >
    >We have given read/write permissions to MyApplication directory for the
    >ASPNET user. Surprisingly same works fine in Windows 2000 professional.
    >Any idea what else needs to be done?
    >
    >Regards
    >
    >rjn
    >
    >
    >*** Sent via Developersdex http://www.developersdex.com ***
    Scott Allen, Apr 6, 2005
    #3
  4. RJN

    RJN Guest

    Thanks for your replies. No identity has been set in the web.config file
    and hence I believe will not use any impersonation. And I'm not trying
    to write the file on the same server and not on a remote server.

    I'll try granting permissions to NETWORK SERVICE account.

    Regards

    rjn




    *** Sent via Developersdex http://www.developersdex.com ***
    RJN, Apr 7, 2005
    #4
  5. RJN
    After granting permissions to NETWORK SERVICE account.
    it should be fine
    Patrick


    *** Sent via Developersdex http://www.developersdex.com ***
    Patrick Olurotimi Ige, Apr 7, 2005
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jose Lopes Moreira

    Write permissions for ASPNET user on Windows 2003

    Jose Lopes Moreira, Jul 18, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    390
    Jose Lopes Moreira
    Jul 18, 2003
  2. Sheryl Landon

    question about setting aspnet user rights

    Sheryl Landon, Aug 14, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    367
    Sheryl Landon
    Aug 14, 2004
  3. Tommy Christian

    aspnet user rights when using COM

    Tommy Christian, Nov 17, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    341
    Jan Peter Stotz
    Nov 17, 2005
  4. SJ

    asp.net admin rights on windows 2003

    SJ, Mar 6, 2006, in forum: ASP .Net Security
    Replies:
    2
    Views:
    215
  5. Replies:
    1
    Views:
    183
    Dominick Baier
    Jul 5, 2007
Loading...

Share This Page