.NET and ooRexx - OK in WIN7 but error in WIN10
I use the .NET assembly. My scripting language is Open Object Rexx.
These lines of (ooRexx) code have been working fine on Windows 7 for months.
If all goes well it prints the name of the SFTP server home directory.
But on WIN10 these lines fail on the session~Open statement.
Looking up 80070057 I find:
When I rewrite this script for VbScript (not included here) I have no error on WIN10, so I am assuming the DLL is installed fine.
Can anybody advise me how to debug this?
Thanks, Andre
These lines of (ooRexx) code have been working fine on Windows 7 for months.
If all goes well it prints the name of the SFTP server home directory.
/** REXX **/ protocol_sftp = 0 server = 'sftp.******.**' port = 22 userid = '*******' passwd = '*******' hostkey = 'ssh-ed25519 256 ***********************************************' Say 'Logging on to server.....' sessionoptions = .OLEobject~New("WinSCP.SessionOptions") SessionOptions~sshhostkeyfingerprint = hostkey SessionOptions~hostname = server SessionOptions~username = userid SessionOptions~password = passwd SessionOptions~portnumber = port SessionOptions~Protocol = protocol_sftp session = .OLEobject~New("WinSCP.Session") session~Open(sessionoptions) Say session~Homepath
*-* Compiled method "UNKNOWN" with scope "OLEObject". 23 *-* session~Open(sessionoptions) Error 92 running z:\winscp-test\test.rex line 23: OLE error. Error 92.901: An unknown OLE error occurred (HRESULT=80070057).
E_INVALIDARG One or more arguments are not valid
Can anybody advise me how to debug this?
Thanks, Andre