Hello,
I made a windows service .net to download files from a ftp server.
In a windows XP machine it works fine, but in a virtual machine with windows 2003 server it fails in the Connect.
I tried to connect using ftp DOS and make a dir command and it worked fine in the fail machine.
here is the log of the fail machine:
DEBUG [FTPClient] 23 Feb 2010 19:28:42.236 : Connecting to ftpbsb.ons.org.br:21
DEBUG [HostNameResolver] 23 Feb 2010 19:28:42.236 : ftpbsb.ons.org.br resolved to 10.107.1.65
DEBUG [FTPControlSocket] 23 Feb 2010 19:28:42.276 : Setting socket timeout=120000
DEBUG [FTPControlSocket] 23 Feb 2010 19:28:42.276 : Command encoding=System.Text.ASCIIEncoding
DEBUG [FTPControlSocket] 23 Feb 2010 19:28:42.276 : StrictReturnCodes=False
ERROR [FTPControlSocket] 23 Feb 2010 19:28:42.306 : Control channel unexpectedly closed ('' read so far)
DEBUG [FTPConnection] 23 Feb 2010 19:28:42.406 : Closing connection (instance=0)
DEBUG [FTPFileFactory] 23 Feb 2010 19:28:42.406 : Defaulting to Unix parsing
DEBUG [FTPControlSocket] 23 Feb 2010 19:28:42.406 : ---> QUIT
ERROR [FTPControlSocket] 23 Feb 2010 19:28:42.406 : Control channel unexpectedly closed ('' read so far)
ERROR [FTPControlSocket] 23 Feb 2010 19:28:42.406 : Exception in SendCommand
ERROR [FTPControlSocket] 23 Feb 2010 19:28:42.406 : EnterpriseDT.Net.Ftp.ControlChannelIOException: Control channel unexpectedly closed ('' read so far)
ERROR [FTPControlSocket] 23 Feb 2010 19:28:42.406 : at EnterpriseDT.Net.Ftp.FTPControlSocket.ReadLine()
ERROR [FTPControlSocket] 23 Feb 2010 19:28:42.406 : at EnterpriseDT.Net.Ftp.FTPControlSocket.ReadReply()
ERROR [FTPControlSocket] 23 Feb 2010 19:28:42.406 : at EnterpriseDT.Net.Ftp.FTPControlSocket.SendCommand(String command)