Can anyone tell me why I am getting this error? I am testing with a client's server and am able to connect to their QA system but their production system returns this:
EnterpriseDT.Net.Ftp.FTPException: SSLv23/TLSv1 (code=334)
at EnterpriseDT.Net.Ftp.FTPControlSocket.ValidateReply(FTPReply reply, String[] expectedReplyCodes)
at EnterpriseDT.Net.Ftp.Ssl.SSLFTPClient.Auth(SSLFTPSSLVersion sslVersion, Boolean secureDataChannels)
at EnterpriseDT.Net.Ftp.Ssl.SSLFTPClient.Auth(SSLFTPSSLVersion securityMechanism)
at EnterpriseDT.Net.Ftp.SecureFTPConnection.SecureConnection()
at EnterpriseDT.Net.Ftp.SecureFTPConnection.Connect()
Here is the code I am running.
SecureFTPConnection ftpConnection = new SecureFTPConnection();
try
{
ftpConnection.LicenseOwner = AppSetting("license.owner");
ftpConnection.LicenseKey = AppSetting("license.key");
if (File.Exists(path))
{
File.Delete(path);
}
ftpConnection.ServerAddress = AppSetting("URL");
ftpConnection.ServerPort = 21;
ftpConnection.UserName = AppSetting("Userid");
ftpConnection.Password = AppSetting("PWD");
ftpConnection.ConnectMode = FTPConnectMode.PASV;
ftpConnection.Protocol = FileTransferProtocol.FTPSExplicit;
ftpConnection.Connect();