Re: File doesn't get transmitted using upload a - WeOnlyDo Discussion board

Re: File doesn't get transmitted using upload a (General questions)

by Kamal, Wednesday, January 05, 2005, 15:20 (7059 days ago) @ wodSupport

The question was, do you normally need to set the server or install the SFTP component in the server to allow it to receive Files using SFTP?!

Does it make any difference if the wodSFTP component installed in both machines are different?!

at the start, the Sample application provided with the component didn't work. so I created a new application, very simple one using a single method as follows:

-----------------------------------------------------------
private void TestwodSFTPComponent()
{
SFTP sftp = new SFTP();
sftp.TempAuthorization = --------- ;
sftp.Blocking = true;
sftp.Hostname = Server.IP.Address ;
sftp.Login = user ;
sftp.Password= pass ;

sftp.LocalPath = @ C:Testkt.txt ;
sftp.RemotePath = /Test_SFTP ;

try
{
sftp.Connect();
sftp.PutFile(
sftp.LocalPath,
sftp.RemotePath);
}
catch(Exception e)
{
MessageBox.Show(e.ToString());
}
finally
{
sftp.Disconnect();
}
}

------------------------------------------------------------

Can you spot any problem with the above set of code, Anything to do with the Order, Any initialisation needed?! :o(



Complete thread: