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

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

by wodDamir, Tuesday, March 25, 2008, 22:39 (6088 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


Complete thread: