Sure, thanks for the help - the full exception is:
2007-07-16 10:28:31,778 [2632] FATAL barcap.research.ed.batch.FolderCopy - EnterpriseDT.Net.Ftp.FTPException: The FTP client has not yet connected to the server. The requested action cannot be performed until after a connection has been established.
at EnterpriseDT.Net.Ftp.FTPClient.CheckConnection(Boolean shouldBeConnected) in z:\bo_research_it\equityderivatives\batch\edtftpnet-1.2.5\src\net\ftp\ftpclient.cs:line 1337
at EnterpriseDT.Net.Ftp.FTPClient.ValidateTransferOnError() in z:\bo_research_it\equityderivatives\batch\edtftpnet-1.2.5\src\net\ftp\ftpclient.cs:line 1696
at EnterpriseDT.Net.Ftp.FTPClient.Get(String localPath, String remoteFile) in z:\bo_research_it\equityderivatives\batch\edtftpnet-1.2.5\src\net\ftp\ftpclient.cs:line 2130
at barcap.research.ed.batch.FolderCopy.Main(String[] args) in z:\bo_research_it\equityderivatives\batch\foldercopyftp\foldercopy.cs:line 135
(I have just recompiled in Debug with version 1.2.5)
The appropriate part of the FTP log is:
DEBUG [FTPControlSocket] 16 Jul 2007 10:14:44.017 : 227 Entering Passive Mode (10,81,39,2,212,231)
DEBUG [FTPControlSocket] 16 Jul 2007 10:14:44.017 : Server supplied address=10.81.39.2
DEBUG [FTPControlSocket] 16 Jul 2007 10:14:44.017 : Server supplied port=54503
DEBUG [FTPControlSocket] 16 Jul 2007 10:14:44.017 : NewPassiveDataSocket(10.81.39.2,54503)
DEBUG [FTPControlSocket] 16 Jul 2007 10:14:44.017 : ---> NLST /V2.5/IVYDB.20070620D.zip
DEBUG [FTPControlSocket] 16 Jul 2007 10:14:44.502 : 150 Opening ASCII data connection for directory listing
DEBUG [FTPClient] 16 Jul 2007 10:14:44.517 : Reading ASCII listing data
DEBUG [FTPClient] 16 Jul 2007 10:14:44.611 : -->IVYDB.20070620D.zip
DEBUG [FTPControlSocket] 16 Jul 2007 10:14:44.627 : 226 transfer complete
DEBUG [FTPClient] 16 Jul 2007 10:14:44.627 : Found 1 listing lines
DEBUG [FTPControlSocket] 16 Jul 2007 10:14:44.627 : ---> TYPE I
DEBUG [FTPControlSocket] 16 Jul 2007 10:14:44.721 : 200 Type set to IMAGE.
DEBUG [FTPControlSocket] 16 Jul 2007 10:14:45.533 : ---> PASV
DEBUG [FTPControlSocket] 16 Jul 2007 10:14:45.533 : 227 Entering Passive Mode (10,81,39,2,69,178)
DEBUG [FTPControlSocket] 16 Jul 2007 10:14:45.533 : Server supplied address=10.81.39.2
DEBUG [FTPControlSocket] 16 Jul 2007 10:14:45.533 : Server supplied port=17842
DEBUG [FTPControlSocket] 16 Jul 2007 10:14:45.533 : NewPassiveDataSocket(10.81.39.2,17842)
DEBUG [FTPControlSocket] 16 Jul 2007 10:14:45.533 : ---> RETR /V2.5/IVYDB.20070620D.zip
DEBUG [FTPControlSocket] 16 Jul 2007 10:14:46.877 : 150 Opening BINARY data connection for \V2.5\IVYDB.20070620D.zip (29824780 bytes)
DEBUG [FTPClient] 16 Jul 2007 10:28:15.418 : Transferred 29824780 bytes from remote host
On this last failure I stepped though the code and it appeared to happen on like 1677, in the ValidateTransfer function:
// check the control response
FTPReply reply = control.ReadReply();