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:]

Re: Trouble when I try do declare a wodFtpDLXComLi

by wodSupport, Friday, August 17, 2007, 10:48 (6309 days ago) @ Bertrand

Bertrand,

something didn't register with the system correctly. If you go

regsvr32 wodFtpDLX.dll
and
regsvr32 wodCertificate.dll

do yuo get any errors?

Kreso

Re: Trouble when I try do declare a wodFtpDLXComLi

by Bertrand, Friday, August 17, 2007, 11:03 (6309 days ago) @ wodSupport

Indeed, when I launch regsvr32 with those filenames, I get a message box like this :
Interop.wodFtpDLXComLib.dll has already been loaded but the entry point DLLRegisterServer can't be found. This file can't be recorded (I'm trying to translate the best I can...)
Maybe I did something in the wrong way...

Re: Trouble when I try do declare a wodFtpDLXComLi

by wodSupport, Friday, August 17, 2007, 11:08 (6309 days ago) @ Bertrand

Bertrand,

you don't need to register interop DLL, only wodFtpDLX.dll itself.

Can you send your code to techsupport@weonlydo.com, perhaps we can try few things. Just explain what you did prior to that so we can duplicate the problem exactly as you experience it?

Kreso