Quantcast
Channel: Alex FTPS Client
Viewing all articles
Browse latest Browse all 114

New Post: Error while Trasferring file to FTPS

$
0
0
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()

outClient.Connect(ServerName,
                            nPort,
                            new NetworkCredential(UserId, UserPassword),
                            ESSLSupportMode.Implicit,
                            new RemoteCertificateValidationCallback(ValidateServerCertificate),
                            new X509Certificate(KeyLocation),
                            0, 0, 0, int.Parse(WaitingMin) * 60, false, eConnectionMode);

outClient.SetTransferMode(eTransferMode);

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)

Viewing all articles
Browse latest Browse all 114

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>