Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
9.3k views
in .NET FTP by (1.1k points)
Code that has been working for years with every new version now throws an error when trying to connect. The code has not changed for at least 3 years.

ftp = New FTPClient
ftp.RemoteHost = My.Settings.RemitFTPHost
ftp.Timeout = 30000
ftp.Connect()


Install 7.3 and now get this error ( i can manually connect to the site still so nothing changed there)

EnterpriseDT.Net.Ftp.ControlChannelIOException was unhandled
Message="Control channel unexpectedly closed ('' read so far)"
Source="edtFTPnetPRO"
StackTrace:
at EnterpriseDT.Net.Ftp.FTPControlSocket.jk2JfehxX()
at EnterpriseDT.Net.Ftp.FTPControlSocket.lHVbvEPOx6()
at EnterpriseDT.Net.Ftp.FTPControlSocket.LUhBNhQpq()
at EnterpriseDT.Net.Ftp.FTPClient.wxsB16We1(FTPControlSocket )
at EnterpriseDT.Net.Ftp.FTPClient.Connect(String remoteHost, Int32 controlPort, Int32 timeout)
at EnterpriseDT.Net.Ftp.FTPClient.Connect()
InnerException:


How can i get an older release?

11 Answers

0 votes
by (1.1k points)
I just referenced version 7.0.1.20, recompiled, and my application works fine
0 votes
by (162k points)
If you are able to send us a 7.3.0 log file at the Debug level that'd help us figure out what your problem might be. It'd be good to fix it.
0 votes
by (1.1k points)
the log shows that I am connecting and is waiting for a logon. Here is how I have been doing that

        ftp = New FTPClient
            ftp.RemoteHost = My.Settings.RemitFTPHost
            ftp.Timeout = 30000
            ftp.Connect()
            ftp.Login(My.Settings.RemitFTPUser, StringDecrypt(My.Settings.RemitFTPPassword, "redsox"))
            ftp.TransferType = FTPTransferType.BINARY


here is the log, the code never gets to the ftp.Login statement. Looks like i need to change my code?


DEBUG [FTPClient] 4 Feb 2011 08:49:01.262 : Connecting to ftp.princetonecom.com:21
DEBUG [HostNameResolver] 4 Feb 2011 08:49:01.278 : Resolving ftp.princetonecom.com
DEBUG [HostNameResolver] 4 Feb 2011 08:49:01.278 : Obtained 1 addresses
DEBUG [HostNameResolver] 4 Feb 2011 08:49:01.278 : IP address: 63.77.3.4
DEBUG [HostNameResolver] 4 Feb 2011 08:49:01.278 : ftp.princetonecom.com resolved to 63.77.3.4
INFO [BaseSocket] 4 Feb 2011 08:49:01.278 : Connecting to 63.77.3.4:21 with timeout 30000 ms
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.309 : Setting socket timeout=30000
INFO [FTPControlSocket] 4 Feb 2011 08:49:01.309 : Command encoding=System.Text.SBCSCodePageEncoding
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.309 : StrictReturnCodes=False
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.309 : 220-ftp.princetonecom.com NcFTPd Server (licensed copy) ready.
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-NOTICE TO USERS
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-This computer system is the property of Princeton eCom.
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-It is for authorized use only. Users (authorized and unauthorized)
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-have no explicit expectation of privacy.
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-Any or all uses of this system and all files on this system may be
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-intercepted, monitored, recorded, copied, audited, inspected, and
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-disclosed to law enforcement personnel, as well as authorized
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-officials of Princeton eCom both domestic and foreign.
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-By using this system, the user consents to such interception,
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-monitoring, recording, copying, auditing, inspection, and disclosure,
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-at the discretion of Princeton eCom personnel.
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-Unauthorized or improper use of this system may result in
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-administrative disciplinary action and civil and criminal penalties.
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-By continuing to use this system you indicate your awareness of and
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-consent to these terms and conditions of use.
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-LOG OFF IMMEDIATELY, if you do not agree to the conditions stated
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-in this warning.
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220-
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:01.418 : 220
DEBUG [FTPControlSocket] 4 Feb 2011 08:49:16.309 : 421 Disconnecting you since you didn't login successfully within 15 seconds.
ERROR [FTPControlSocket] 4 Feb 2011 08:49:16.309 : Control channel unexpectedly closed ('' read so far)
0 votes
by (1.1k points)
The new library works against other ftp servers using the same type of code.

Not sure where to turn to now, may have to contact this particular client. for now i wont upgrade this particular app to the new version
0 votes
by (162k points)
Thanks, we'll check this out. It should be easy to fix.
0 votes
by (162k points)
Problem fixed, please email support at enterprisedt dot com for a patched version. If this works fine for you we'll do a minor release asap.
0 votes
by (1.1k points)
e-mail sent
0 votes
by (1.1k points)
The dll you sent me corrects the problem. Thank you.
0 votes
by (162k points)
Now released as 7.3.1 (not 7.4.0 - sorry about that).
0 votes
by (200 points)
Where can I download the version with this fix? When I download 'latest', I am still getting 7.3.0.20 intead of 7.3.1.

Thanks

Categories

...