I am trying to copy a file from a location on the C drive to a mapped network drive (Z) which is \address\content\
However I am getting the following error message:
System.UnauthorizedAccessException: Access to the path '\\192.168.100.227\content\2-Banner-20120402120304.png' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite)
at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
at Admin.Controllers.OffersController.UploadNewFiles(OfferModel offer)
I have checked security setting for the directory and I can see that the following user does have full access on on the folder
- IUSER
- SYSTEM
- NETWORK SERVICE
- Rack
- steven.wade
- Administrators
- Users
Any ideas why I can't copy their via ASP.NET?
Steven