Lost connection. Timeout detected. (control connection)
Hi,
I am trying the .NET assembly under VB .NET.
While when using the application it self I can transfer files without error, when I use this simple code:
I am getting the error message:
Any clues?
Stavros
I am trying the .NET assembly under VB .NET.
While when using the application it self I can transfer files without error, when I use this simple code:
Dim sessionOptions As New SessionOptions With sessionOptions .Protocol = Protocol.Ftp .HostName = HostName .PortNumber = Port .UserName = ftpUsername .Password = ftppassword .FtpMode = FtpMode.Passive End With Using session As New Session ' Connect session.Open(sessionOptions) ' Upload files Dim transferOptions As New TransferOptions transferOptions.TransferMode = TransferMode.Binary transferOptions.OverwriteMode = OverwriteMode.Overwrite Dim transferResult As TransferOperationResult transferResult = session.PutFiles(mFromFile, mToFile, False, transferOptions) transferResult.Check() End Using
I want to add that the file has been transferred OK, but I get this message.Lost connection.
Timeout detected. (control connection)
Could not retrieve file information
Can't get attributes of file ......
Any clues?
Stavros