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抛出该异常