I'm using this code to sent documents to an ftp server:
ftp = new FTPClient(FTPDetails.host);
ftp.Timeout = 1000000; // test based on
http://www.enterprisedt.com/forums/viewtopic.php?t=298
ftp.Login(FTPDetails.user, FTPDetails.password);
ftp.ConnectMode = FTPConnectMode.PASV;
ftp.TransferType = FTPTransferType.BINARY;
// make unique folder and put doc in it
ftp.ChDir(FTPDetails.ftpBasePath);
ftp.MkDir(uniqueFolder);
ftp.ChDir(uniqueFolder);
ftp.Put(file, fileName);
ftp.Quit(); //(actually in finally block, removed for brevity)
This works great for files up to 70mb, but I've been testing with a few files over 80mb and it fails.
I get 'Unable to read data from the transport connection', the base exception is "An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full'.
I've seen
http://www.enterprisedt.com/forums/viewtopic.php?t=138, but the microsoft links suggest it would fail for all FTP attempts, but this works fine for smaller files, even after this failure. Client has 300+mb of ram free
Any ideas of cause or solution?
Many thanks.
Jon