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)