Trouble when I try do declare a wodFtpDLXComLib.wo - WeOnlyDo Discussion board

Trouble when I try do declare a wodFtpDLXComLib.wo (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Bertrand, Friday, August 17, 2007, 10:28 (6309 days ago)

Hello !
I'm trying to run the following code :

[code]
Public Class Form1
Dim WithEvents ftp1 As wodFtpDLXComLib.wodFtpDLXCom
Dim cert As WODCERTMNGLib.Certificate

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

ftp1 = New wodFtpDLXComLib.wodFtpDLXCom
cert = New WODCERTMNGLib.Certificate

ftp1.Certificate = cert

cert.LoadKey( c:SRAprivate.txt , weonlydo )

ftp1.Hostname = your_hostname
ftp1.Authentication = wodFtpDLXComLib.AuthenticationsEnum.authCertificate
ftp1.Login = your_login
ftp1.Protocol = wodFtpDLXComLib.ProtocolsEnum.SFTP
ftp1.Connect()

End Sub
End Class[/code]

I added the following references in the project :
Interop.ComctlLib
Interop.InetCtlsObjects
Interop.MSWinsockLib
Interop.WODCERTMNGLib
Interop.wodFtpDLXComLib

But I get this error message when I run the project :

[code]Retrieving the COM class factory for component with CLSID {FE5B9A96-B1A7-4E8B-9713-115F51088981} failed due to the following error: 80040154.[/code] which refers to the line ftp1 = New wodFtpDLXComLib.wodFtpDLXCom ...

Could you help me please ! [:sad:]


Complete thread: