Author: cmh2001 | Posted on: 11/18/2008 12:53:05 PM | Views : 299

I have a web app written in ASP.NET 2.0 and C#. It uses a FileUpload control to have a user upload a file to a data storage folder on the server:

 try

{

FileUpload1.PostedFile.SaveAs(path + FileUpload1.FileName);
return FileUpload1.FileName;
}

It works fine on my computer running on my file system. My site is hosted by GoDaddy.com and running the application on there results in:

File could not be uploaded. System.UnauthorizedAccessException: Access to the path 'd:\hosting\cmh2001\KB_Articles\cable.jpg' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, F ...

Go to the complete details ...