This project is read-only.

Error while Trasferring file to FTPS

Apr 30, 2015 at 7:09 AM
Edited Apr 30, 2015 at 7:26 AM
Hi ,
We are using this for FTPS transfer,
It was working fine before, but now it is giving us this error while putting file to FTPS,

It is able to connect to FTPS server,
FTPSClient outClient = new FTPSClient()

                            new NetworkCredential(UserId, UserPassword),
                            new RemoteCertificateValidationCallback(ValidateServerCertificate),
                            new X509Certificate(KeyLocation),
                            0, 0, 0, int.Parse(WaitingMin) * 60, false, eConnectionMode);


outClient.PutFile(@sFilePath, FileMask);
The following is the error which started appearing,
It is able to connect to the FTPS server, but unable to put the file there.

:::Error Message: Data connections must be encrypted.

:::Stack Trace: at AlexPilotti.FTPS.Client.FTPSClient.GetReply()
at AlexPilotti.FTPS.Client.FTPSClient.HandleCmd(String command, Boolean waitForAnswer)
at AlexPilotti.FTPS.Client.FTPSClient.StorCmd(String fileName)
at AlexPilotti.FTPS.Client.FTPSClient.PutFile(String remoteFileName)
at AlexPilotti.FTPS.Client.FTPSClient.PutFile(String localFileName, String remoteFileName, FileTransferCallback transferCallback)