-1

Pre-running code. But now he's making a mistake. The error is "TLS does not match the control connection". I get an error during client.Upload ().
I am developing with c #. In Filezilla application, the same process works without problems. error during upload. What should I do?

using (Ftp client = new Ftp())
            {
                client.ServerCertificateValidate += ValidateCertificate;
                client.ConnectSSL(Host);
                client.Login(Username, Password); 
                client.Upload(dosyaAdi, LocalDestinationFilename);
              }
kadirsnsy
  • 17
  • 1
  • 5
  • What FTP library are you using? – Martin Prikryl Dec 05 '19 at 11:56
  • using Limilabs.FTP.Client; – kadirsnsy Dec 05 '19 at 12:07
  • So why do you ask here? Contact their support -- Your FTP server requires TLS session resumption. I didn't find any mention of that in their online documentation. – Martin Prikryl Dec 05 '19 at 12:14
  • The same project on another computer is running smoothly. It does not give a TLS error and is performing the Update process. Previously the project was running smoothly. – kadirsnsy Dec 05 '19 at 12:48
  • What another computer? Another server or another client? + Does the class support any kind of logging? + Or do you have an access to FTP server log file? – Martin Prikryl Dec 05 '19 at 13:30
  • I am not having errors with the FileZilla server. I'm just getting an error in c #. When I run C # on another computer, it still works properly. The application is updating to ftp on computer A. But B is giving error on computer – kadirsnsy Dec 05 '19 at 17:18
  • Do you have any logs or not? – Martin Prikryl Dec 05 '19 at 17:22
  • No, when I compile the code, the "client.update () method fails. The error text is this: TLS data connection session not resumed or does not match session control connection – kadirsnsy Dec 05 '19 at 17:33

1 Answers1

-1

I've entered port 2121. client.connect (Host, 2121); shaped. Problem solved. He made this mistake because of the port.

using (Ftp client = new Ftp())
            {
                client.ServerCertificateValidate += ValidateCertificate;
                client.Connect(Host,2121);
                client.Login(Username, Password); 
                client.Upload(dosyaAdi, LocalDestinationFilename);
              }
kadirsnsy
  • 17
  • 1
  • 5