Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO

SSL error when running code in visual studio

0 votes
41 views
asked Aug 23 in CompleteFTP by Ashojani (120 points)
Hi, I have a visual studio project that is very old. I needed to upgrade the EDT FTP PRO to the latest version and I am able to compile the code successfully, but I cannot run/start it. I get an error message in my log saying 'SSL  is required. code=500>. Is this a certificate issue? Thanks
commented Aug 23 by support2 (143,750 points)
You probably need to connect using FTPS Explicit mode.
commented Aug 23 by Ashojani (120 points)
It looks like it's already doing that:

ftpConnection.Protocol = FileTransferProtocol.FTPSExplicit;
                        ftpConnection.ServerValidation = SecureFTPServerValidationType.None;
                        ftpConnection.MinSSLVersion = EnterpriseDT.Net.Ftp.Ssl.SSLFTPSSLVersion.TLS1;
commented Aug 23 by Ashojani (120 points)
Actually  The config file is using FTP protocol and this is what I have for FTP
case "FTP":
                    {
                        ftpConnection.Protocol = FileTransferProtocol.FTP;
                        break;
                    }
commented Aug 23 by support2 (143,750 points)
You need to ensure it is using FTPS Explicit
commented Aug 23 by Ashojani (120 points)
I tried it. I changed FTP to FTPS Explicit and I can still compile but I cannot run it.
commented Aug 23 by support2 (143,750 points)
You'll need to post an excerpt from the *debug* level log file showing the connection attempt.

Please log in or register to answer this question.

...