FtpDLX InvalidStateException on PutFile Method - WeOnlyDo Discussion board

FtpDLX InvalidStateException on PutFile Method (wodFtpDLX / wodFtpDLX.NET)

by Ömer Arslan, Tuesday, December 26, 2023, 12:25 (60 days ago)

Hello, we use FtpDLX on out corporate application. In some cases, during the execution of PutFile method, the system throws a InvalidStateException. We suspected about the ftp IDLE timeout. But it is not related the idle time. The complete exception message is as below.

WeOnlyDo.Exceptions.FtpDLX.InvalidStateException: Please connect first.
at A.a.B(Int64 )
at WeOnlyDo.Client.FtpDLX.PutFile(String LocalFile, String RemotePath)

Can you please help me about this issue? Thanks.

FtpDLX InvalidStateException on PutFile Method

by Jasmine, Tuesday, December 26, 2023, 16:52 (60 days ago) @ Ömer Arslan

Hi.

It's really hard to say without seeing the code. I don't know if you use Blocking=true or Blocking=false in your code, but obviously connection has dropped so the error reported it.

I can't say why connection is dropped without trying to duplicate the issue.

Regards,
Jasmine