I am a new user of WINSCP with automation. I have installed and "successfully" registered the dll following the commands on the website https://winscp.net/eng/docs/library_install#registering. However when I attempt to add the reference to "WinSCP console interface .NET wrapper " the only interface I see is "WinSCP scripting interface .NET wrapper".
Is this the correct interface to use ?
If not then does that imply that it has not registered correctly ?
I have tried writing a very simple routine to instantiate the Session as per below:
Public Sub myUpload()
Dim mySession As New Session
On Error Resume Next
If Err.Number <> 0 Then
MsgBox "Error: " & Err.Description
' Clear the error
' Setup session options
Dim mySessionOptions As New SessionOptions
'.Protocol = Protocol_Sftp
'.HostName = "example.com"
'.UserName = "user"
'.Password = "mypassword"
'.SshHostKeyFingerprint = "ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
This causes an Automation Error, HelpConext 1000440, and Error.Number -2146232576.
I have tried googling these but have not found any solution yet so I ammgoing to uninstall WinSCP and start again.