Getting an error 550 Local policy requires CCC when trying to get list of files in a folder - FTPS

0 votes
asked Jul 16, 2015 by roel.vlemmings (140 points)

Error while starting data transfer: Rebex.Net.FtpException: Local policy requires CCC (550).
at Rebex.Net.Ftp.WM(String A, Boolean B, PS C, TP D, Int64 I, FtpTransferState J)
Error while initializing data connection.

Applies to: Rebex FTP/SSL

1 Answer

0 votes
answered Jul 16, 2015 by Lukas Pokorny (126,910 points)

It looks like the server is only able to transfer data when the control connection has been reverted to unencrypted mode after a (successful and secure) authentication.

Please try calling ClearCommandChannel method (represents the CCC command) after authenticating and before transfering any files or retrieving directory listings:

var client = new Ftp();
client.Login("username", "password");

Check out Reverting to unencrypted communication for additional information about ClearCommandChannel method.