Results 1 to 1 of 1

Thread: access denied? [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    access denied? [RESOLVED]

    Hi there.

    when uploaded a file to the temp dir on my Server, I want to move it from temp to another folder within the Server directory (rename the file and move to diff dir) however I always get the error that access has been denied!

    but the permissions are set to allow modify/write for both the temp folder and the main folder I wish to copy the file to.

    any ideas?

    Code:
    System.IO.File.Move(Server.MapPath("temp/" + theFileName), Server.MapPath(theNewFilenameAndDir));
    Last edited by Techno; Sep 8th, 2005 at 02:33 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width