Com class not registered

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Viewer (v2)  /  Com class not registered

DynamicPDF Viewer (v2) Forum

 Jun 17 2013 5:02 AM
Hi,

We use the pdfViewer v2 build 1929 in a .Net4 project and it has worked fine until today. I installed Visual Studio 2012 update 2 last week and now I can't access the form where I have the viewer component embedded, I get a com class is not registered error. When I open the form the component is not accessible and only covered with error code.
This is very urgent for me to fix since I need to deliver the application to our customer for testing as soon as possible.

Here are my stack traces, if they can help you in any way.
    
Instances of this error (2) 
 
1.   Hide Call Stack
 
at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
at System.Windows.Forms.AxHost.CreateInstance()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.set_Site(ISite value)
at System.ComponentModel.Container.Add(IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.ComponentCodeDomSerializer.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializer.DeserializeStatementToInstance(IDesignerSerializationManager manager, CodeStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
at System.Windows.Forms.Design.ControlCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statements) 
 
2.   Hide Call Stack
 
at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
at System.Windows.Forms.AxHost.CreateInstance()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.ControlCollection.Add(Control value)
at System.Windows.Forms.Form.ControlCollection.Add(Control value)
at System.Windows.Forms.Design.ControlDesigner.DesignerControlCollection.Add(Control c)
 
Thank you!
 
 Jun 17 2013 5:14 AM
For some reason I needed to repair the installation of the PdfViewer and then the com class was found again.
My guess that some component that the viewer is depending on got changed in the update and the viewer couldn't access it anymore. Just a thought...
 Jun 17 2013 9:57 AM
Posted by a ceTe Software moderator
Hello,

The “COM class not registered” error could happen if the Viewer ocx is not registered. Repairing/reinstalling the Viewer installation or registering the Viewer ocx should resolve this error.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 2:23 AM.