ASP.NET and drive mappings

Discussion in 'ASP .Net' started by AA, Nov 10, 2003.

  1. AA

    AA Guest

    I want to copy a file from within an ASP.NET page using
    File.Copy(file1,file2). Both file1 and file2 are given in UNC
    notation, like "\\MACHINE1\c$\xyz\file.txt". The ASP.NET page
    impersonates a user that has access to those files. I get an error
    stating that the file does not exist. If I try from within a windows
    app I have no problem. I think the problem is that aspnet_wp.exe runs
    under ASPNET's identity.
    Can you give me further help?
    Thx,
    Alejandro
     
    AA, Nov 10, 2003
    #1
    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. Jon
    Replies:
    5
    Views:
    11,369
    Scott M.
    Jan 17, 2010
  2. SlimFlem
    Replies:
    7
    Views:
    751
    John Timney \( MVP \)
    Dec 22, 2005
  3. shailesh
    Replies:
    1
    Views:
    860
    Tim Golden
    Mar 28, 2007
  4. deliasmith

    C DRIVE AND D DRIVE

    deliasmith, May 16, 2008, in forum: ASP .Net
    Replies:
    16
    Views:
    2,900
  5. king
    Replies:
    1
    Views:
    315
Loading...

Share This Page