Unable to add COM object to form

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Viewer (v1)  /  Re: Unable to add COM object to form

DynamicPDF Viewer (v1) Forum

 May 19 2011 12:22 PM
I rescently downloaded version 1.1 and now I am unable to add the COM object to a form. 

VS2010 throws an error when I try to drop the COM object on a user control.  The error reads, "Failed to create component 'AxHost'.  The error message follows:  'System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types..." 

I can uninstall version 1.1 and reinstall version 1.0 and it works just fine.

Has anyone else experienced this issue?  If there a resolution to this issue?
 May 20 2011 12:11 PM
Posted by a ceTe Software moderator
Hello,

We are able to add the v1.1 of Viewer control to VS 2010 windows forms without any problem. This could be related to an improperly registered ocx file.

If the DynamicPDF.ocx file is registered properly, you should be able to add the Viewer control to the windows form from the tool bar. Please use the below commands from command prompt to unregister the v1.0 ocx and register the v1.1 ocx file and see if it works.

Register Command:            regsvr32 DynamicPDFViewer.ocx

Unregister Command:          regsvr32 DynamicPDFViewer.ocx /u
 
Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 7:48 PM.