I'm using edtFTPnet Pro and I just want to upload a file to a partner (I don't have the control of the FTP destination).
When the dll try to connect to the ftp, i have got this error:
{"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"}
Here is my code in c#
// set the license
ExportFtp.LicenseOwner = "MyRealLicence..."
ExportFtp.LicenseKey = "MyRealLicenceKey";
// setting server address and credentials
ExportFtp.ServerAddress = ftpAdress;
ExportFtp.ServerPort = int.Parse(ftpPort);
ExportFtp.UserName = ftpLogin;
ExportFtp.Password = ftpPassword;
ExportFtp.ConnectMode = EnterpriseDT.Net.Ftp.FTPConnectMode.PASV;
ExportFtp.Timeout = 120;
ExportFtp.TransferBufferSize = 6000;
ExportFtp.ServerDirectory = strDirectory;
ExportFtp.AutoPassiveIPSubstitution = false;
ExportFtp.Connect();
I tried with a public FTP and this code worked... my partner destination ftp have to be connected in Passive Mode, port 2100.
I have no problem to connect my partner FTP with Fillezilla, why edtFTPnet/Pro give me this error???