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

by wodDamir, (6247 days ago) @ Puja Mallik

Puja,

You need to provide absolute paths to files for both, local and remote files. I.e:

ftp1.LocalPath = C: ;
ftp1.RemotePath = /home/user/somefile.txt ;
ftp1.GetFile();

or like this:

ftp1.GetFile( C: , /home/user/somefile.txt );

From the code you sent us I see that you're passing wrong values to the component, which causes the error you are receiving.

Regards,
Damba

locked

Complete thread: