Session.GetFiles loops and does not return my hand
Here my code:
The
FileZilla server says:
The server is configured to use the FTPS protocol with a let's encrypt certificate
Thanks for your help.
Tchicken.
Dim Serveur As String Dim OriIP As String '*** ProgressBar.Value = 0 ProgressBar.Maximum = 0 '*** If RadioPresles.Checked Then Serveur = "PRESLES" ElseIf RadioLesArcs.Checked Then Serveur = "LESARCS" Else Serveur = "LINSELLES" End If '*** Call Affichage("Fichier du " & MyDateDonnees & " en cours de téléchargement à partir du serveur " & Serveur, True, False) '*** If RadioPresles.Checked Then OriUri = UriPresles OriIP = UriPreslesIn Else If RadioLesArcs.Checked Then OriUri = UriLesArcs OriIP = UriLesArcsIn Else OriUri = UriLinselles OriIP = UriLinsellesIn End If End If Interne: Try ' Setup session options Dim sessionOptions As New SessionOptions With sessionOptions .Protocol = Protocol.Ftp .FtpMode = FtpMode.Passive .PortNumber = 50000 .HostName = OriUri .UserName = userName .Password = password End With Using session As New Session session.Open(sessionOptions) Dim transferOptions As New TransferOptions transferOptions.TransferMode = TransferMode.Binary Dim transferResult As TransferOperationResult transferResult = session.GetFiles(MyFile, ".\", False, transferOptions) transferResult.Check() End Using Catch Erreur As Exception '*** If InStr(Erreur.Message, "192.168.") Then OriUri = OriIP GoTo Interne End If VerificationServeurs.BackColor = Color.DarkBlue VerificationServeurs.ForeColor = Color.Red Call Affichage("Erreur de chargement, veuillez réessayer...", False, False) '*** Exit Sub End Try OutputFilePath = My.Application.Info.DirectoryPath & "\" & MyFile Call Insertions()
session.GetFiles
loops and does not return my hand:
transferResult = session.GetFiles(MyFile, ".\", False, transferOptions)
<Date> Info [Type] Message <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 [Response] 220-FileZilla Server 1.4.1 <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 [Response] 220 Please visit https://filezilla-project.org/ <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 [Command] USER genturfevo <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 [Response] 331 Please, specify the password. <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 [Command] PASS **** <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 genturfevo [Response] 230 Login successful. <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 genturfevo [Command] SYST <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 genturfevo [Response] 215 UNIX emulated by FileZilla. <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 genturfevo [Command] FEAT <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 genturfevo [Response] 211-Features: <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 genturfevo [Response] 211 End <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 genturfevo [Command] PWD <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 genturfevo [Response] 257 "/" is current directory. <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 genturfevo [Command] CWD / <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 genturfevo [Response] 250 CWD command successful <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 genturfevo [Command] PWD <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 genturfevo [Response] 257 "/" is current directory. <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 genturfevo [Command] TYPE A <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 genturfevo [Response] 200 Type set to A <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 genturfevo [Command] PASV <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 genturfevo [Response] 227 Entering Passive Mode (192,168,0,111,200,229) <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 genturfevo [Command] MLSD <14/07/2022 10:12:21> FTP Session 2398 192.168.0.254 genturfevo [Response] 150 About to start data transfer. <14/07/2022 10:12:36> FTP Server [Status] Session 2398 ended gracefully. <14/07/2022 10:12:41> FTP Session 2399 192.168.0.254 [Response] 220-FileZilla Server 1.4.1 <14/07/2022 10:12:41> FTP Session 2399 192.168.0.254 [Response] 220 Please visit https://filezilla-project.org/ <14/07/2022 10:12:41> FTP Session 2399 192.168.0.254 [Command] USER genturfevo <14/07/2022 10:12:41> FTP Session 2399 192.168.0.254 [Response] 331 Please, specify the password. <14/07/2022 10:12:41> FTP Session 2399 192.168.0.254 [Command] PASS **** <14/07/2022 10:12:41> FTP Session 2399 192.168.0.254 genturfevo [Response] 230 Login successful. <14/07/2022 10:12:41> FTP Session 2399 192.168.0.254 genturfevo [Command] SYST <14/07/2022 10:12:41> FTP Session 2399 192.168.0.254 genturfevo [Response] 215 UNIX emulated by FileZilla. <14/07/2022 10:12:41> FTP Session 2399 192.168.0.254 genturfevo [Command] FEAT <14/07/2022 10:12:41> FTP Session 2399 192.168.0.254 genturfevo [Response] 211-Features: <14/07/2022 10:12:41> FTP Session 2399 192.168.0.254 genturfevo [Response] 211 End <14/07/2022 10:12:41> FTP Session 2399 192.168.0.254 genturfevo [Command] PWD <14/07/2022 10:12:41> FTP Session 2399 192.168.0.254 genturfevo [Response] 257 "/" is current directory. <14/07/2022 10:12:42> FTP Session 2399 192.168.0.254 genturfevo [Command] CWD / <14/07/2022 10:12:42> FTP Session 2399 192.168.0.254 genturfevo [Response] 250 CWD command successful <14/07/2022 10:12:42> FTP Session 2399 192.168.0.254 genturfevo [Command] PWD <14/07/2022 10:12:42> FTP Session 2399 192.168.0.254 genturfevo [Response] 257 "/" is current directory. <14/07/2022 10:12:42> FTP Session 2399 192.168.0.254 genturfevo [Command] TYPE A <14/07/2022 10:12:42> FTP Session 2399 192.168.0.254 genturfevo [Response] 200 Type set to A <14/07/2022 10:12:42> FTP Session 2399 192.168.0.254 genturfevo [Command] PASV <14/07/2022 10:12:42> FTP Session 2399 192.168.0.254 genturfevo [Response] 227 Entering Passive Mode (192,168,0,111,198,132) <14/07/2022 10:12:42> FTP Session 2399 192.168.0.254 genturfevo [Command] MLSD <14/07/2022 10:12:42> FTP Session 2399 192.168.0.254 genturfevo [Response] 150 About to start data transfer. <14/07/2022 10:12:57> FTP Server [Status] Session 2399 ended gracefully.
Thanks for your help.
Tchicken.