1
以下代碼用於連接到FTP服務器。Azure虛擬機中的IIS中的FTP服務器拋出的「服務器無法接受參數」異常
client.Mode = FtpMode.Active;
client.ActiveModePorts = new Range(10000, 10001);
client.Connect(ftpModel.ftpServer, ftpModel.ftpPort);
client.Login(ftpModel.ftpUser, ftpModel.ftpPassword);
我使用Ftp.dll nuget packaage進行開發。
- 誤差由Visual Studio拋出該異常