Re: FTPES - how to? - WeOnlyDo Discussion board

Re: FTPES - how to? (General questions)

by Alun, Friday, June 04, 2010, 13:14 (5077 days ago) @ woddrazen

Ok, to go into a bit more detail, this is the code I'm using:

FtpDLX Ftp = new FtpDLX();
Ftp.Hostname = Host;
Ftp.Protocol = Protocols.FTPSwithdata;
Ftp.Login = Username;
Ftp.Authentication = Authentications.Password;
Ftp.Password = Password;
Ftp.Port = Port;
Ftp.Blocking = true;
Ftp.ProgressEvent += new FtpDLX.ProgressDelegate(Ftp_ProgressEvent);
Ftp.DoneEvent += new FtpDLX.DoneDelegate(Ftp_DoneEvent);
Ftp.TransferMode = TransferModes.Binary;
Ftp.Connect();
Ftp.PutFile(f_UploadFilename, RemotePath);

It gets to the 'PutFile' command but after a while it triggers the FFtp_DonEvent handler, with the FtpDoneArgs Description reading A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond xx.x.x.xxx:xxxx .

When I connect to the same server using Filezilla I need to explicitly accept a certificate once the connection has been made - is it possible I need to do something similar in this case?


Complete thread: