Author: SpikeTheMaster | Posted on: 2/25/2010 3:42:47 PM | Views : 398

When trying to map a path with FileUpload1.SaveAs(Server.MapPath("~\images\uploaded"))

I get the following error

 [UnauthorizedAccessException: Access to the path 'C:\Users\Michael\Documents\Home\Shiloh\GEA\GEASite\images\uploaded' is denied.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7716783
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +1162
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions ...

Go to the complete details ...