I am trying to upload my text file using putfile function it give error" connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.2.120:50548" string str2 = Convert.ToString(ftp.PutFile(@"C:\Documents and Settings\neetesh\Desktop\FTPS Project All\Test\shwetamber.docx", "/wwwroot/shwetamber.docx")); if (ftp.PutFile(listView1.Items[i].SubItems[1].Text,strSort(listView1.Items[i].SubItems[1].Text)) > 0) { } |
The question has been closed for the following reason "exact duplicate" by Martin Vobr 02 Aug '10, 14:34
|
Hello, this is a network error and usually means that the target machine/port is not accessible. Possible causes:
Are you able to connect to the target machine using any third-party FTP client (such as Filezilla) from the same computer where you tried running your code? This kind of error is usually thrown from ftp.Connect call and not from ftp.PutFile. Could your either edit your question and include the FTP communication log or mail it to support@rebex.net for analysis? You can see how to create a communication log at http://www.rebex.net/kb/logging.aspx. This log will include the exception details and might help us to determine the root cause of the problem. |