Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

dms

Posts

3

Joined

Thu Sep 23, 2010 8:40 am

Problem connecting to FTPS server - Control channel unexpect

by dms » Thu Sep 23, 2010 8:49 am

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()
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Problem connecting to FTPS server - Control channel unex

by support2 » Thu Sep 23, 2010 9:52 am

Port 990 is the implicit FTPS port. Are you sure implicit is what you are after?
no avatar
User

dms

Posts

3

Joined

Thu Sep 23, 2010 8:40 am

by dms » Thu Sep 23, 2010 11:37 pm

Yes. 990 is the port we were instructed use. I tried both Implicit and Explicit connections and both generate the same error.
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Fri Sep 24, 2010 8:23 am

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.
no avatar
User

dms

Posts

3

Joined

Thu Sep 23, 2010 8:40 am

by dms » Sat Sep 25, 2010 12:16 am

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

Who is online

Users browsing this forum: No registered users and 19 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron