Please help me
I have a problem for copy file de remote folder to local folder.
Error Code = 10060
Error Message = Unable to read data from the transport connection: An attempt to connect failed because the component has not responded connected \ r \ ncorretamente after a period of time or the established connection failed \ r \ nporque connected the host did not respond.
//CODE
string ftpServer = "ftp.myftp.com";
string ftpLogin = "myLogin";
string ftpPass = "myPass";
string folder = "myFolder";
string localPath = "D:\\"
FTPClient ftp = null;
ftp = new FTPClient(ftpServer);
ftp.Login(ftpLogin, ftpPass);
ftp.ConnectMode = FTPConnectMode.PASV;
ftp.TransferType = FTPTransferType.ASCII;
if (ftp.IsConnected == true)
{
string[] files = ftp.Dir(folder, false);
for (int i = 0; i < files.Length; i++)
{
if (files[i].ToLower() == "myFile.txt")
{
ftp.Get((localPath + files[i]), files[i]);
}
}
}