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

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

by Puja Mallik, Tuesday, March 25, 2008, 22:31 (5884 days ago) @ wodDamir

Puja,

What HostName are you trying to connect to? The error means that your machine can't reach the host.

Did you try conencting to that host using any other client? Does that work?

Regards,
Damba

====================================================================
My connection is working fine now since I was missing the Port number.

Now I'm receiving WeOnlyDo.Exceptions.SFTP.ServerException: Server returned an error: No such file or folder
Do you know what is wrong in below code ?

If my files is stored in xyz folder
and I'm using
filename = abc.text
localpath = .downloads

sftp1.RemotePath = /xyz ;
log.Info( RemotePath ok );
sftp1.GetFile(_Localpath, filename);


Complete thread: