62,046
社区成员
发帖
与我相关
我的任务
分享
using FluentFTP;
FtpClient client = new FtpClient("127.0.0.1");
client.Credentials = new NetworkCredential("test1", "123456");
client.EncryptionMode = FtpEncryptionMode.Explicit;
client.ValidateCertificate += new FtpSslValidation(OnValidateCertificate);
client.Connect();
string localPath = @"D:\work\document\临时信息1.txt";
string remotePath =@"/临时信息.txt";
client.DownloadFile(localPath, remotePath);
---报错:由于远程方已关闭传输流,身份验证失败