Search code examples
c#activexvisual-foxpro

C# Winform ActiveX error while add in VFP form


I create one ActiveX control for PDFViewer (PdfiumViewer.dll) to use in Visual FoxPro form.

When adding to the Visual Foxpro form, I received the following error:

first time Ole Error class not registered ole error code 0x80040154

then

Ole Error code 0x80070002: The system cannot find the file specified.


Solution

  • fixed with RegAsm with /codebase