Posted on: 4/21/2014 12:01:57 PM | Views : 329

Hi Experts,
I am trying to upload file to another server. But I am getting error: The remote server returned an error: (550) File unavailable (e.g., file not found, no access).
I am using the following code:-
protected void btnUpload_Click(object sender, EventArgs e) { string ftphost = "19.10.0.12"; string path = @"ftp://" + ftphost + "/FolderName/XFiles"; if ((FileUpload1.PostedFile != null) && (FileUpload1.PostedFile.ContentLength > 0)) { string fname = Path.GetFileName(FileUpload1.FileName); ftpUpload(path+"/" + fname, Path.GetFullPath(FileUpload1.FileName)); } } private void ftpUpload(string ftpfilepath, string inputfilepath) { try { string ftphost = ...

Go to the complete details ...