Can connect to FTP using FileZilla or WinSCP, but not with FtpWebRequest or FluentFTP

.NET framework does not support TLS/SSL session reuse. If your server requires it (what it looks it does and what is quite common nowadays and what is good thing for security), you cannot use FtpWebRequest nor FluentFTP. Both use the .NET implementation of TLS/SSL.

You will have to use FTP library that uses own TLS/SSL implementation.

You can use my WinSCP .NET assembly. Though contrary to FluentFTP, it’s not a native .NET library, it has dependencies on an external binary. But that’s what makes it working.

Some references:

Leave a Comment