Some bug, of c-sharpFtpWebRequest would like to ask, is there a solution?

recently made a ftp client module for winform, using the FtpWebRequest, test server I built locally with iis. But the production environment is a linux server, and I thought there was nothing wrong with the ftp protocol.

as a result, the WebRequestMethods.Ftp.GetFileSize method is used to connect to the linux server constantly reporting 550errors. And the information obtained by ListDirectoryDetails is different from that of iis. How much I hate C-sharp at this time (from using c-sharp, stepping on numerous pitfalls), I really think java is better.

later, I kept on Baidu, and finally knew why. https://cloud.tencent.com/dev.
means that Microsoft is too slow to support the latest FTP commands.

I think the third-party library should be able to solve the problem? However, Baidu does not have the introduction of a third-party library in this respect, and the god should be well-informed and have good suggestions.
Please also give me some advice!

Jun.03,2021

I suggest you use winscp. See https://winscp.net/eng/docs/l..

works well in the project.

Menu