Unable to add COM object to form

Unable to add COM object to form

Forum member · May 19, 2011
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?

Re: Unable to add COM object to form

Support · May 20, 2011
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