Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.4k views
in .NET FTP by (540 points)
I have written an app for automating uploading of specific file to various FTP servers.
Some of the servers are SFTP.

The application works perfectly in the development environment.
However when deplying the application the production version does not work.

I was hoping to see it work in the production environment prior to purchasing. I need to ensure there are no security issues such as requiring elevated rights on the workstation. If that is a requirement then this API will not work for me.
I love the simplicity and the power provided with the API. I am really looking forward to purchasing it.

Environment information:

Development machine:
Win 7 Ult 64 bit
VS 2008 (Latest SP) VB.net is used for program.

Production machines:
Win XP SP 3
latest dotnet updates.

All other apps I have developed for this environment work fine, Only the FTP doesn't work. It seems to connect then disconnects.
Error Message = 'Control channel unexpectedly closed ( read so far) '
I am using the properties to set the License information.

5 Answers

0 votes
by (162k points)
Please enable logging at the All level and email the log file to support at enterprisedt dot com.

Also check that no firewalls are on the production machine preventing FTP connections.
0 votes
by (540 points)
These workstations have no firewalls enabled. They are behind a firewall of course. But the corporate firewall does allow FTP traffic outbound.

Here is an excerpt from the Log:

INFO [LicenseProperties] 7 Jul 2010 14:26:10.053 : Licence expiry date: 7/28/2010
INFO [LicenseProperties] 7 Jul 2010 14:26:10.053 : Trial license
DEBUG [SSLFTPClient] 7 Jul 2010 14:26:10.053 : Connecting to ftp.server.com:990
DEBUG [SSLFTPControlSocket] 7 Jul 2010 14:26:10.053 : waitOnShutdownSSL=True
DEBUG [HostNameResolver] 7 Jul 2010 14:26:10.100 : Resolving ftp.server.com
DEBUG [HostNameResolver] 7 Jul 2010 14:26:11.115 : Obtained 1 addresses
DEBUG [HostNameResolver] 7 Jul 2010 14:26:11.131 : IP address: 67.xx.xx.xx
DEBUG [HostNameResolver] 7 Jul 2010 14:26:11.131 : ftp.server.com resolved to 67.xx.xx.xx
DEBUG [ExFTPControlSocket] 7 Jul 2010 14:26:11.131 : Connecting directly to ftp-server ftp.server.com:990
DEBUG [FTPControlSocket] 7 Jul 2010 14:26:11.194 : Setting socket timeout=120000
ALL [SecureSocket] 7 Jul 2010 14:26:11.225 : SecureSocket timeout=120000
ALL [SecureSocket] 7 Jul 2010 14:26:11.225 : SecureSocket timeout=120000
DEBUG [FTPControlSocket] 7 Jul 2010 14:26:11.225 : Command encoding=System.Text.ASCIIEncoding
DEBUG [ExFTPControlSocket] 7 Jul 2010 14:26:11.225 : Created control-socket: SocksContext=, ProxySettings=NoProxy, RemoteHost=ftp.server.com, controlPort=990, timeout=120000
DEBUG [FTPControlSocket] 7 Jul 2010 14:26:11.240 : StrictReturnCodes=False
ERROR [FTPControlSocket] 7 Jul 2010 14:27:11.306 : Control channel unexpectedly closed ('' read so far)
DEBUG [FTPConnection] 7 Jul 2010 14:27:11.321 : Closing connection (instance=0)
DEBUG [FTPFileFactory] 7 Jul 2010 14:27:11.321 : Defaulting to Unix parsing
DEBUG [FTPControlSocket] 7 Jul 2010 14:27:11.321 : ---> QUIT
ERROR [FTPControlSocket] 7 Jul 2010 14:27:11.321 : Control channel unexpectedly closed ('' read so far)
ERROR [FTPControlSocket] 7 Jul 2010 14:27:11.321 : Exception in SendCommand
ERROR [FTPControlSocket] 7 Jul 2010 14:27:11.321 : EnterpriseDT.Net.Ftp.ControlChannelIOException: Control channel unexpectedly closed ('' read so far)
ERROR [FTPControlSocket] 7 Jul 2010 14:27:11.321 : at EnterpriseDT.Net.Ftp.FTPControlSocket.nPqqJvmiv()
ERROR [FTPControlSocket] 7 Jul 2010 14:27:11.321 : at EnterpriseDT.Net.Ftp.FTPControlSocket.Ign4Bx5HWG()
ERROR [FTPControlSocket] 7 Jul 2010 14:27:11.321 : at EnterpriseDT.Net.Ftp.FTPControlSocket.SendCommand(String command)
DEBUG [SecureSocket] 7 Jul 2010 14:27:11.352 : Shutdown(Both)
ERROR [SecureFTPConnection] 7 Jul 2010 14:27:11.352 : Control channel unexpectedly closed ('' read so far)
ERROR [SecureFTPConnection] 7 Jul 2010 14:27:11.352 : EnterpriseDT.Net.Ftp.ControlChannelIOException: Control channel unexpectedly closed ('' read so far)
ERROR [SecureFTPConnection] 7 Jul 2010 14:27:11.352 : at EnterpriseDT.Net.Ftp.FTPControlSocket.nPqqJvmiv()
ERROR [SecureFTPConnection] 7 Jul 2010 14:27:11.352 : at EnterpriseDT.Net.Ftp.FTPControlSocket.Ign4Bx5HWG()
ERROR [SecureFTPConnection] 7 Jul 2010 14:27:11.352 : at EnterpriseDT.Net.Ftp.FTPControlSocket.SendCommand(String command)
ERROR [SecureFTPConnection] 7 Jul 2010 14:27:11.352 : at EnterpriseDT.Net.Ftp.FTPClient.Quit()
ERROR [SecureFTPConnection] 7 Jul 2010 14:27:11.352 : at EnterpriseDT.Net.Ftp.Ssl.SSLFTPClient.Quit()
ERROR [SecureFTPConnection] 7 Jul 2010 14:27:11.352 : at EnterpriseDT.Net.Ftp.FTPConnection.Close(Boolean abruptClose)
ERROR [SecureFTPConnection] 7 Jul 2010 14:27:11.352 : at EnterpriseDT.Net.Ftp.ExFTPConnection.Close(Boolean abruptClose)
ERROR [SecureFTPConnection] 7 Jul 2010 14:27:11.352 : at EnterpriseDT.Net.Ftp.FTPConnection.Close()
ERROR [SecureFTPConnection] 7 Jul 2010 14:27:11.352 : at EnterpriseDT.Net.Ftp.SecureFTPConnection.Connect()
0 votes
by (540 points)
I figured out this problem. I was not setting SFTP. This is fixed now, but I am having other issues. Log files to follow.
0 votes
by (540 points)
I have fixed all the issues I have had.
So far I love this API!
After our tests conclude next week we will purchase.

Thank you!
0 votes
by (162k points)
Thanks for the positive feedback!

Categories

...