Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
15.3k views
in .NET FTP by (440 points)
Hi, i have been successfully using this FTP object for some time but have found that i am consistantly getting the following error if the file being sent is over 10MB.

IOException in Put(string,string,bool) : System.IO.IOException: Unable to read data from the transport connection: A 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.

I can send the same file using WS_FTP for example with no issues.

Is there a limit on the free version?

Here are some of the configuration settings i have..

ftpClient.RemoteHost = ftpSite;
ftpClient.ConnectMode = EnterpriseDT.Net.Ftp.FTPConnectMode.PASV;
ftpClient.CloseStreamsAfterTransfer = true;
ftpClient.SynchronizePassiveConnections = true;
ftpClient.Connect();
ftpClient.User(ftpUsername);
ftpClient.Password(ftpPassword);
ftpClient.TransferType = EnterpriseDT.Net.Ftp.FTPTransferType.BINARY;
ftpClient.BytesTransferred += new EnterpriseDT.Net.Ftp.BytesTransferredHandler(BytesTransferred);

Cheers
Grant.

18 Answers

0 votes
by (161k points)
Hi, have you had any luck with this? I can't really see why it would work with one client and not another.
0 votes
by (440 points)
hey, unfortunately not. would you like me to send you my app and you canhave a crack??
0 votes
by (161k points)
can you create a test FTP account on your server that we can access? if so please email us the details
0 votes
by (440 points)
hi, i have setup a test account for you.

server = grantos.org
un = edt@grantos.org
pw = edt123

let me know how you go.

cheers. grant.
0 votes
by (161k points)
Hi, I uploaded a 5 MB file (a smaller one because I'm uploading from the Internet) which took about 5 minutes. There wasn't any problems with timing out.

Log below:


DEBUG [AsyncTask] 13 Jan 2009 12:24:43.085 : Running task: UploadFile(String="D:\downloads\localpic.jpg", String="localpic.jpg")
DEBUG [FTPConnection] 13 Jan 2009 12:24:43.086 : UploadFile(D:\downloads\localpic.jpg,localpic.jpg)
DEBUG [FTPConnection] 13 Jan 2009 12:24:43.101 : Combining absolute path 'D:\downloads' with relative path 'D:\downloads\localpic.jpg'
DEBUG [FTPControlSocket] 13 Jan 2009 12:24:43.105 : ---> PASV
DEBUG [FTPControlSocket] 13 Jan 2009 12:24:43.136 : 227 Entering Passive Mode (117,58,251,10,34,246)
DEBUG [FTPControlSocket] 13 Jan 2009 12:24:43.136 : Server supplied address=117.58.251.10
DEBUG [FTPControlSocket] 13 Jan 2009 12:24:43.136 : Server supplied port=8950
DEBUG [FTPControlSocket] 13 Jan 2009 12:24:43.136 : Substituting server supplied IP (117.58.251.10) with remote host IP (117.58.251.10)
DEBUG [SecureSocket] 13 Jan 2009 12:24:43.136 : Set timeout=120000
DEBUG [SecureSocket] 13 Jan 2009 12:24:43.136 : Set timeout=120000
DEBUG [ExFTPControlSocket] 13 Jan 2009 12:24:43.136 : Connecting directly to ftp-server 117.58.251.10:8950
DEBUG [ExFTPPassiveDataSocket] 13 Jan 2009 12:24:43.165 : Created passive data-socket: ProxyConnector=
DEBUG [SSLFTPPassiveDataSocket] 13 Jan 2009 12:24:43.165 : Created passive data-socket: Protocol=None, CompatibilityFlags=Standard, UseSSLClosure=True, WaitOnClose=True
DEBUG [SecureSocket] 13 Jan 2009 12:24:43.165 : Set timeout=120000
DEBUG [SecureSocket] 13 Jan 2009 12:24:43.165 : Set timeout=120000
DEBUG [FTPControlSocket] 13 Jan 2009 12:24:43.165 : ---> STOR localpic.jpg
DEBUG [FTPControlSocket] 13 Jan 2009 12:24:43.198 : 150 Accepted data connection
DEBUG [FTPClient] 13 Jan 2009 12:29:38.100 : Closing source stream
DEBUG [SSLFTPPassiveDataSocket] 13 Jan 2009 12:29:38.100 : Closing passive data-channel.
DEBUG [SSLFTPPassiveDataSocket] 13 Jan 2009 12:29:38.100 : Beginning SSL closure exchange on passive data-channel.
DEBUG [SSLFTPPassiveDataSocket] 13 Jan 2009 12:29:38.100 : SSL closure exchange
DEBUG [SSLFTPPassiveDataSocket] 13 Jan 2009 12:29:38.100 : Passive data-channel closed
DEBUG [FTPClient] 13 Jan 2009 12:29:38.100 : Transferred 5159289 bytes to remote host
DEBUG [FTPControlSocket] 13 Jan 2009 12:29:41.194 : 226-File successfully transferred
DEBUG [FTPControlSocket] 13 Jan 2009 12:29:41.194 : 226 298.019 seconds (measured here), 16.91 Kbytes per second
DEBUG [AsyncTask] 13 Jan 2009 12:29:41.195 : Task completed: UploadFile(String="D:\downloads\localpic.jpg", String="localpic.jpg")
0 votes
by (440 points)
hey Bruce, yeah i havent had any trouble with anything less than 10mb. are you able to give a 15mb or greater file a try? as that is where im having problems...
0 votes
by (161k points)
will do
0 votes
by (161k points)
Ok, I uploaded a file of around 17 MB that took about 16 min without any problems.


DEBUG [FTPConnection] 13 Jan 2009 14:56:13.559 : UploadFile(D:\downloads\vahelp72023.exe,vahelp72023.exe)
DEBUG [FTPConnection] 13 Jan 2009 14:56:13.574 : Combining absolute path 'D:\downloads' with relative path 'D:\downloads\vahelp72023.exe'
DEBUG [FTPControlSocket] 13 Jan 2009 14:56:13.578 : ---> PASV
DEBUG [FTPControlSocket] 13 Jan 2009 14:56:13.607 : 227 Entering Passive Mode (117,58,251,10,164,191)
DEBUG [FTPControlSocket] 13 Jan 2009 14:56:13.607 : Server supplied address=117.58.251.10
DEBUG [FTPControlSocket] 13 Jan 2009 14:56:13.607 : Server supplied port=42175
DEBUG [FTPControlSocket] 13 Jan 2009 14:56:13.607 : Substituting server supplied IP (117.58.251.10) with remote host IP (117.58.251.10)
DEBUG [SecureSocket] 13 Jan 2009 14:56:13.607 : Set timeout=120000
DEBUG [SecureSocket] 13 Jan 2009 14:56:13.607 : Set timeout=120000
DEBUG [ExFTPControlSocket] 13 Jan 2009 14:56:13.607 : Connecting directly to ftp-server 117.58.251.10:42175
DEBUG [ExFTPPassiveDataSocket] 13 Jan 2009 14:56:13.636 : Created passive data-socket: ProxyConnector=
DEBUG [SSLFTPPassiveDataSocket] 13 Jan 2009 14:56:13.636 : Created passive data-socket: Protocol=None, CompatibilityFlags=Standard, UseSSLClosure=True, WaitOnClose=True
DEBUG [SecureSocket] 13 Jan 2009 14:56:13.636 : Set timeout=120000
DEBUG [SecureSocket] 13 Jan 2009 14:56:13.636 : Set timeout=120000
DEBUG [FTPControlSocket] 13 Jan 2009 14:56:13.636 : ---> STOR vahelp72023.exe
DEBUG [FTPControlSocket] 13 Jan 2009 14:56:13.675 : 150 Accepted data connection
DEBUG [FTPClient] 13 Jan 2009 15:12:10.104 : Closing source stream
DEBUG [SSLFTPPassiveDataSocket] 13 Jan 2009 15:12:10.104 : Closing passive data-channel.
DEBUG [SSLFTPPassiveDataSocket] 13 Jan 2009 15:12:10.104 : Beginning SSL closure exchange on passive data-channel.
DEBUG [SSLFTPPassiveDataSocket] 13 Jan 2009 15:12:10.104 : SSL closure exchange
DEBUG [SSLFTPPassiveDataSocket] 13 Jan 2009 15:12:10.104 : Passive data-channel closed
DEBUG [FTPClient] 13 Jan 2009 15:12:10.104 : Transferred 17417414 bytes to remote host
DEBUG [FTPControlSocket] 13 Jan 2009 15:12:14.535 : 226-File successfully transferred
DEBUG [FTPControlSocket] 13 Jan 2009 15:12:14.535 : 226 960.937 seconds (measured here), 17.70 Kbytes per second
DEBUG [AsyncTask] 13 Jan 2009 15:12:14.536 : Task completed: UploadFile(String="D:\downloads\vahelp72023.exe", String="vahelp72023.exe")

Categories

...