Hi, I am trying to test of using ftp.dll in VS .NET 6.0 Winform. My code is below:
using Limilabs.FTP.Client;
private void button1_Click(object sender, EventArgs e)
{
using (Ftp client = new Ftp())
{
// Error here when running
// Limilabs.FTP.Client.FtpException:
// 'No such host is known.'
client.Connect("ftp://103.77.166.26");
client.Login("giamsatchung", "xxxxxxx");
client.Upload(
@"BVN_HOTR_NUO001.txt",
@"D:\SDL\Server1\2023\08\15\BVN_HOTR_NUO001.txt");
client.Close();
}
}