SFTP w/ Microsoft Dynamics Nav (Navision) (General questions)
Hello, I am having an error when trying to connect to a sftp server through Dynamics Nav.
I am having trouble connecting to the server, and have tried a variety of ways. My code is as follows:
[code]
Name DataType Subtype Length
ftp1 Automation 'WeOnlyDo! COM SFTP Client ActiveX Control'.wodSFTP
//declared variable ^
CREATE(ftp1);
ftp1.Hostname := 'xxx.xxx.xxx.xxx';
ftp1.Port := 22;
ft4p1.Login := 'username';
ftp1.Password := 'password1';
ftp1.Connect;
ftp1.RemotePath := '/my/remote/directory/';
ftp1.MakeDir('testdir/');
[/code]
I have also tried assigning the controls to variables too:
[code]
host := ftp1.hostname('xxx.xxx.xxx.xxx');
etc
[/code]
and then connecting using
[code]
ftp1.connect(host,port);
[/code]
I have also tried
[code]
ftp1.hostname('xxx.xxx.xxx.xxx');
[/code]
All of the above ways are legal according to Nav..
However, once the code reaches the 'makedir' control I get the following error:
The call to member MakeDir failed. WeOnlyDo.wodSFTP.1 returned the following message:
Cannot send/receive/list at this time, not connected.
I was simply wondering if anyone had any ideas as to why it might not be connecting?
The server I am trying to connect to is SFTP (using SSH2) and on port 22.
Any ideas/comments(/solutions!) would be greatly appreciated,
Thanks in advance,
Josh
Complete thread:
- SFTP w/ Microsoft Dynamics Nav (Navision) - Josh, 2007-11-05, 15:44
- Re: SFTP w/ Microsoft Dynamics Nav (Navision) - wodDamir, 2007-11-05, 15:49
- Re: SFTP w/ Microsoft Dynamics Nav (Navision) - Josh, 2007-11-05, 15:59
- Re: SFTP w/ Microsoft Dynamics Nav (Navision) - wodDamir, 2007-11-05, 16:06
- Re: SFTP w/ Microsoft Dynamics Nav (Navision) - Josh, 2007-11-05, 16:21
- Re: SFTP w/ Microsoft Dynamics Nav (Navision) - woddrazen, 2007-11-05, 16:30
- Re: SFTP w/ Microsoft Dynamics Nav (Navision) - Josh, 2007-11-05, 16:56
- Re: SFTP w/ Microsoft Dynamics Nav (Navision) - woddrazen, 2007-11-05, 17:24
- Re: SFTP w/ Microsoft Dynamics Nav (Navision) - Josh, 2007-11-05, 16:56
- Re: SFTP w/ Microsoft Dynamics Nav (Navision) - woddrazen, 2007-11-05, 16:30
- Re: SFTP w/ Microsoft Dynamics Nav (Navision) - Josh, 2007-11-05, 16:21
- Re: SFTP w/ Microsoft Dynamics Nav (Navision) - wodDamir, 2007-11-05, 16:06
- Re: SFTP w/ Microsoft Dynamics Nav (Navision) - Josh, 2007-11-05, 15:59
- Re: SFTP w/ Microsoft Dynamics Nav (Navision) - wodDamir, 2007-11-05, 15:49