Even i was facing the same issue with godaddy. U can try Ftp upload.
Below is my code wich may help you.
String sourcefilepath = FileUpload1.FileName; // e.g. “d:/test.docx”
if (sourcefilepath != null)
{
String ftpurl = "Ftp url"; // e.g. ftp://serverip/foldername/foldername
String ftpusername = "username"; // e.g. username
String ftppassword = "password"; // e.g. password
//string filename = Path.GetFileName(sourcefilepath);
string filename = Path.GetFileName(sourcefilepath);
string ftpfullpath = ftpurl;
try
{
FtpWebRequest ftp = (FtpWebRequest)FtpWebRequest.Create(ftpfullpath);
ftp.Credentials = new NetworkCredential(ftpusername, ftppassword);
ftp.KeepAlive = true;
ftp.UseBinary = true;
ftp.Method = WebRequestMethods.Ftp.UploadFile;
FileStream fs = new FileStream(System.Web.Hosting.HostingEnvironment.MapPath(@"~/contact/") + filename, FileMode.OpenOrCreate, FileAccess.ReadWrite);
//FileStream fs = File.OpenRead(filename);
byte[] buffer = new byte[fs.Length];
fs.Read(buffer, 0, buffer.Length);
fs.Close();
Stream ftpstream = ftp.GetRequestStream();
ftpstream.Write(buffer, 0, buffer.Length);
ftpstream.Close();
}
catch (Exception exe2)
{
Label1.Text = exe2.ToString();
}
}