Hi I'm using Rebex.Net.Ftp 2.0.2567, and I want to check the Ftp connection state at the end of my try/catch block in order to disconnect if there was some error during transfer etc. I thought something like this might work :
Finally
If ftp.GetConnectionState.Connected Then
UpdateStatus("Disconnecting")
ftp.Disconnect()
End If
End Try
However, I get a InvalidOperationException
error telling me that I'm "Not connected to the server".
Can anyone suggest where I'm going wrong please ?
Thanks, Martin