Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.1k views
in .NET FTP by (140 points)
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???

1 Answer

0 votes
by (162k points)
Can you enable logging at Debug level (LogLevel and LogFile properties) and email it to us (support at ....)

If Filezilla is working fine, please paste its log as well (Edit-.Settings->Debug - check all options)

Categories

...