Re: WeOnlyDo.Exceptions.SFTP.InvalidStateException - WeOnlyDo Discussion board

Re: WeOnlyDo.Exceptions.SFTP.InvalidStateException (General questions)

by Puja Mallik, Tuesday, March 25, 2008, 20:55 (6088 days ago) @ Puja Mallik

Puja,

You need to set Blocking Property to true in order to use the component that way. Blocking mode will ensure that the current method is executed before proceeding to the next one.

Please set Blocking proeprty to True before using issuing Connect method. I believe it should work afterwards.

Regards,
Damba

I used the sftp1.blocking property before connect then I recieved a differet error as below
sftp1.Blocking = true;
sftp1.Connect();
System.Net.Sockets.SocketException: A socket operation was attempted to an unreachable network
at ..()
at WeOnlyDo.Client.SFTP.Connect()


Complete thread: