This project is read-only.

Error: The remote certificate is invalid according to the validation procedure.

Jan 31, 2014 at 10:25 PM
Edited Jan 31, 2014 at 10:26 PM
I get the above error when I connect to the ftps server. The below is my code. Note that the url has ftps instead of ftp. 
client.Connect("", new NetworkCredential(userName,password),
                                            ESSLSupportMode.CredentialsRequired | ESSLSupportMode.DataChannelRequested);
Is my syntax incorrect? What might be causing this issue? Also, I was able to connect to this server through FileZilla but using the "SFTP" protocol.