Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
8k views
in .NET FTP by (200 points)
I'm unable to connect to a FTPS server and get this msg. I've attached the logfile.

Control channel unexpectedly closed ('' read so far)

Any help would be great! Thanks


DEBUG [LicenseProperties] 22 Sep 2010 18:36:07.546 : Looking for subkey Software\Enterprise Distributed Technologies\edtFTPnet PRO (fallback )
DEBUG [LicenseProperties] 22 Sep 2010 18:36:07.546 : Found license subkey Software\Enterprise Distributed Technologies\edtFTPnet PRO
DEBUG [LicenseProperties] 22 Sep 2010 18:36:07.546 : Looking for subkey Software\Enterprise Distributed Technologies\edtFTPnet PRO (fallback )
DEBUG [LicenseProperties] 22 Sep 2010 18:36:07.546 : Found license subkey Software\Enterprise Distributed Technologies\edtFTPnet PRO
DEBUG [LicenseProperties] 22 Sep 2010 18:36:07.546 : Looking for subkey Software\Enterprise Distributed Technologies\edtFTPnet PRO (fallback )
DEBUG [LicenseProperties] 22 Sep 2010 18:36:07.546 : Found license subkey Software\Enterprise Distributed Technologies\edtFTPnet PRO
DEBUG [LicenseProperties] 22 Sep 2010 18:36:07.546 : Looking for subkey Software\Enterprise Distributed Technologies\edtFTPnet PRO (fallback )
DEBUG [LicenseProperties] 22 Sep 2010 18:36:07.546 : Found license subkey Software\Enterprise Distributed Technologies\edtFTPnet PRO
DEBUG [SFTPMessageStore] 22 Sep 2010 18:36:07.546 : Set timeout=0
DEBUG [SSLFTPClient] 22 Sep 2010 18:36:13.062 : Connecting to 63.78.198.2:990
DEBUG [SSLFTPControlSocket] 22 Sep 2010 18:36:13.062 : waitOnShutdownSSL=True
DEBUG [HostNameResolver] 22 Sep 2010 18:36:13.062 : 63.78.198.2 resolved to 63.78.198.2
DEBUG [ExFTPControlSocket] 22 Sep 2010 18:36:13.062 : Connecting directly to ftp-server 63.78.198.2:990
DEBUG [FTPControlSocket] 22 Sep 2010 18:36:13.093 : Setting socket timeout=0
DEBUG [FTPControlSocket] 22 Sep 2010 18:36:13.093 : Command encoding=System.Text.ASCIIEncoding
DEBUG [ExFTPControlSocket] 22 Sep 2010 18:36:13.093 : Created control-socket: SocksContext=, ProxySettings=NoProxy, RemoteHost=63.78.198.2, controlPort=990, timeout=0
DEBUG [FTPControlSocket] 22 Sep 2010 18:36:13.093 : StrictReturnCodes=False
ERROR [FTPControlSocket] 22 Sep 2010 18:37:13.359 : Control channel unexpectedly closed ('' read so far)
DEBUG [FTPConnection] 22 Sep 2010 18:37:13.375 : Closing connection (instance=1)
DEBUG [FTPFileFactory] 22 Sep 2010 18:37:13.375 : Defaulting to Unix parsing
DEBUG [FTPControlSocket] 22 Sep 2010 18:37:13.375 : ---> QUIT
ERROR [FTPControlSocket] 22 Sep 2010 18:37:13.375 : Control channel unexpectedly closed ('' read so far)
ERROR [FTPControlSocket] 22 Sep 2010 18:37:13.375 : Exception in SendCommand
ERROR [FTPControlSocket] 22 Sep 2010 18:37:13.375 : EnterpriseDT.Net.Ftp.ControlChannelIOException: Control channel unexpectedly closed ('' read so far)
ERROR [FTPControlSocket] 22 Sep 2010 18:37:13.375 : at EnterpriseDT.Net.Ftp.FTPControlSocket.jxFNUh1KA()
ERROR [FTPControlSocket] 22 Sep 2010 18:37:13.375 : at EnterpriseDT.Net.Ftp.FTPControlSocket.j2d91gHU21()
ERROR [FTPControlSocket] 22 Sep 2010 18:37:13.375 : at EnterpriseDT.Net.Ftp.FTPControlSocket.SendCommand(String command)
DEBUG [SecureSocket] 22 Sep 2010 18:37:13.375 : Shutdown(Both)
ERROR [SecureFTPConnection] 22 Sep 2010 18:37:13.375 : Control channel unexpectedly closed ('' read so far)
ERROR [SecureFTPConnection] 22 Sep 2010 18:37:13.375 : EnterpriseDT.Net.Ftp.ControlChannelIOException: Control channel unexpectedly closed ('' read so far)
ERROR [SecureFTPConnection] 22 Sep 2010 18:37:13.375 : at EnterpriseDT.Net.Ftp.FTPControlSocket.jxFNUh1KA()
ERROR [SecureFTPConnection] 22 Sep 2010 18:37:13.375 : at EnterpriseDT.Net.Ftp.FTPControlSocket.j2d91gHU21()
ERROR [SecureFTPConnection] 22 Sep 2010 18:37:13.375 : at EnterpriseDT.Net.Ftp.FTPControlSocket.SendCommand(String command)
ERROR [SecureFTPConnection] 22 Sep 2010 18:37:13.375 : at EnterpriseDT.Net.Ftp.FTPClient.Quit()
ERROR [SecureFTPConnection] 22 Sep 2010 18:37:13.375 : at EnterpriseDT.Net.Ftp.Ssl.SSLFTPClient.Quit()
ERROR [SecureFTPConnection] 22 Sep 2010 18:37:13.375 : at EnterpriseDT.Net.Ftp.FTPConnection.Close(Boolean abruptClose)
ERROR [SecureFTPConnection] 22 Sep 2010 18:37:13.375 : at EnterpriseDT.Net.Ftp.ExFTPConnection.Close(Boolean abruptClose)
ERROR [SecureFTPConnection] 22 Sep 2010 18:37:13.375 : at EnterpriseDT.Net.Ftp.FTPConnection.Close()
ERROR [SecureFTPConnection] 22 Sep 2010 18:37:13.375 : at EnterpriseDT.Net.Ftp.SecureFTPConnection.Connect()

4 Answers

0 votes
by (162k points)
Port 990 is the implicit FTPS port. Are you sure implicit is what you are after?
0 votes
by (200 points)
Yes. 990 is the port we were instructed use. I tried both Implicit and Explicit connections and both generate the same error.
0 votes
by (162k points)
It's closing the connection as soon as you connect.

Could you try connecting with Filezilla, and if that succeeds, please post the filezilla log at the highest logging level.
0 votes
by (200 points)
The problem was this. I was setting ServerPort to 990 and you can't have both a data and control channel set to the same value (which I did not realize was happending at first). After setting ServerPort to 21 the Explicit FTP worked perfectly.

Regards
dms

Categories

...