Hey all, I've managed to open an FTP connection to Citrix Sharefile on Port 21, but when I change to Port 990, it comes back with Control channel unexpectedly closed ('' read so far).
I'm new to this library, and all I've done is use the following code:
'Open FTP connection
Dim ftp As New EnterpriseDT.Net.Ftp.SecureFTPConnection
EnterpriseDT.Util.Debug.Logger.CurrentLevel = EnterpriseDT.Util.Debug.Level.ALL
ftp.ServerAddress = My.Settings.FtpServer
ftp.ServerPort = 990
ftp.UserName = My.Settings.FtpUser
ftp.Password = My.Settings.FtpPassword
When changed to Port 21, this works perfectly. I should also point out that using FileZilla to connect on Port 990 works fine. I'm hoping that I'm just missing a property or something - help please?!
Here is what comes back when I attempt to open a connection on Port 990:
DEBUG [SSLFTPClient] 12 Sep 2017 16:18:16.667 : Connecting to 54.206.19.242:990
DEBUG [SSLFTPControlSocket] 12 Sep 2017 16:18:16.668 : waitOnShutdownSSL=True
DEBUG [SecureSocket] 12 Sep 2017 16:18:16.672 : ChangeSecurityProtocol: None
DEBUG [ExFTPControlSocket] 12 Sep 2017 16:18:16.674 : Created control-socket: SocksContext=, ProxySettings=NoProxy, RemoteHost=54.206.19.242, controlPort=990, timeout=120000
DEBUG [FTPControlSocket] 12 Sep 2017 16:18:16.675 : StrictReturnCodes=False
DEBUG [HostNameResolver] 12 Sep 2017 16:18:16.677 : Resolving 54.206.19.242
DEBUG [HostNameResolver] 12 Sep 2017 16:18:16.677 : 54.206.19.242 resolved to 54.206.19.242
DEBUG [ExFTPControlSocket] 12 Sep 2017 16:18:16.677 : Connecting directly to ftp-server 54.206.19.242:990
INFO [SSLFTPSocket] 12 Sep 2017 16:18:16.677 : Connecting to 54.206.19.242:990 with timeout 120000 ms
DEBUG [SSLFTPSocket] 12 Sep 2017 16:18:16.709 : Successfully connected to 54.206.19.242:990
DEBUG [FTPControlSocket] 12 Sep 2017 16:18:16.709 : Setting socket timeout=120000
DEBUG [FTPControlSocket] 12 Sep 2017 16:18:16.709 : SetSocketTimeout: 120000
ALL [SecureSocket] 12 Sep 2017 16:18:16.710 : SecureSocket timeout=120000
ALL [SecureSocket] 12 Sep 2017 16:18:16.710 : SecureSocket timeout=120000
INFO [FTPControlSocket] 12 Sep 2017 16:18:16.711 : Command encoding=System.Text.SBCSCodePageEncoding
ERROR [FTPControlSocket] 12 Sep 2017 16:18:27.216 : Control channel unexpectedly closed ('' read so far)
DEBUG [FTPTaskProcessor] 12 Sep 2017 16:18:27.232 : Purging task queue
DEBUG [FTPConnection] 12 Sep 2017 16:18:27.233 : Closing connection [instance=0,abrupt=False]
DEBUG [FTPFileFactory] 12 Sep 2017 16:18:27.234 : Defaulting to Unix parsing
DEBUG [FTPControlSocket] 12 Sep 2017 16:18:27.235 : ---> QUIT
ERROR [FTPControlSocket] 12 Sep 2017 16:18:27.236 : Control channel unexpectedly closed ('' read so far)
ERROR [FTPControlSocket] 12 Sep 2017 16:18:27.245 : Exception in SendCommand : EnterpriseDT.Net.Ftp.ControlChannelIOException: Control channel unexpectedly closed ('' read so far)
ERROR [FTPControlSocket] 12 Sep 2017 16:18:27.245 : ERROR [FTPControlSocket] 12 Sep 2017 16:18:27.245 : at EnterpriseDT.Net.Ftp.FTPControlSocket.GiBfBwJo1P()
ERROR [FTPControlSocket] 12 Sep 2017 16:18:27.246 : ERROR [FTPControlSocket] 12 Sep 2017 16:18:27.245 : at EnterpriseDT.Net.Ftp.FTPControlSocket.eZVYKSnem3L()
ERROR [FTPControlSocket] 12 Sep 2017 16:18:27.246 : ERROR [FTPControlSocket] 12 Sep 2017 16:18:27.245 : at EnterpriseDT.Net.Ftp.FTPControlSocket.SendCommand(String command)
ERROR [FTPConnection] 12 Sep 2017 16:18:27.246 : Command error : EnterpriseDT.Net.Ftp.ControlChannelIOException: Control channel unexpectedly closed ('' read so far)
ERROR [FTPConnection] 12 Sep 2017 16:18:27.246 : ERROR [FTPConnection] 12 Sep 2017 16:18:27.246 : at EnterpriseDT.Net.Ftp.FTPControlSocket.GiBfBwJo1P()
ERROR [FTPConnection] 12 Sep 2017 16:18:27.246 : ERROR [FTPConnection] 12 Sep 2017 16:18:27.246 : at EnterpriseDT.Net.Ftp.FTPControlSocket.eZVYKSnem3L()
ERROR [FTPConnection] 12 Sep 2017 16:18:27.246 : ERROR [FTPConnection] 12 Sep 2017 16:18:27.246 : at EnterpriseDT.Net.Ftp.FTPControlSocket.SendCommand(String command)
DEBUG [SecureSocket] 12 Sep 2017 16:18:27.254 : Shutdown(Both)
WARN [FTPConnection] 12 Sep 2017 16:18:27.255 : Caught exception closing connection: Control channel unexpectedly closed ('' read so far)
Thanks in advance.