Downloaded your new version of Client Tools 8 and have tried to get sFTPClient to work and failing on this side. Getting the following error - OLE Error code 0x80131509: Unknown COM status code
Happening in the Connect function of wwSFTPClient on the following line
loSftpClient = loSftp.Connect(lcServer, INT(this.nPort),lcUsername,lcPassword)****
All DLL's are in the folder
My code is below
Thanks
Brian
DO wwutils
DO wwsFTPClient
DO wwDotnetBridge
lcServer = '178.12.12.12'
lcUserName = 'uds-user'
lcPassword = 'LeMeIn123'
lnPort = 22
lSFTP = .T.
? "*** wwSftpClient Test***"
loFtp = CREATEOBJECT("wwsFtpClient")
loFtp.cLogFile = "c:\temp\ftp.log" && verbose log - leave empty
loFtp.lIgnoreCertificateErrors = .T. && self-signed cert not installed
loFtp.cServer = lcServer
loFtp.nPort = lnPort
loFtp.cUsername = lcUsername
loFtp.cPassword = lcPassword
IF !loFtp.Connect()
? loFtp.cErrorMsg
RETURN
ENDIF
Can confirm. Taking a look... looks like a version mismatch but it might be on my end.
+++ Rick ---
Argh - yes this caused by a missing dependent assembly. The underlying .NET library had rev'd and added a new dependency. I've rolled back to an earlier version that doesn't have these dependencies.
Both shareware and release versions have been updated... re-download to get the latest.
At minimum you'll need to update:
- Renci.sshnet.dll
- wwDotnetBridge.dll
But you can update the entire library.
Thanks for catching this...
+++ Rick ---
You are missing ChangeDirectory from wwFTPConnect I copied the function over from wwSFTPConnect and it worked fine here.
Should we be seeing different version numbers on the affected DLLs?