ftp login problems when using .Net Assembly
Hi,
I'm trying to use vbscript for logging in into an ftp server but that fails.
Error message: SessionOptions.Protocol is Protocol.sftp or Protocol.Scp, but SessionOptions.SshHostKeyFingerprint is not set.
Code: 80070057
The following code for logging in into an sftp server works fine:
Problem is that I would like to access both ftp and sftp servers via the code.
Any idea's?
Using: version 5.15 build 9365
Thanks,
Geert
I'm trying to use vbscript for logging in into an ftp server but that fails.
Set SessionOptions = WScript.CreateObject("WinSCP.SessionOptions")
Set Session = WScript.CreateObject("WinSCP.Session")
With SessionOptions
.Protocol = Protocol_Ftp
.HostName = "ftpserver"
.UserName = "username"
.Password = "password"
End With
session.Open sessionOptionsCode: 80070057
The following code for logging in into an sftp server works fine:
Set SessionOptions = WScript.CreateObject("WinSCP.SessionOptions")
Set Session = WScript.CreateObject("WinSCP.Session")
With SessionOptions
.Protocol = Protocol_Sftp
.HostName = "sftpserver"
.UserName = "username"
.Password = "password"
'.SshHostKeyFingerprint = "ssh-rsa xxxxxxxx"
End With
session.Open sessionOptionsAny idea's?
Using: version 5.15 build 9365
Thanks,
Geert