Click here to Skip to main content
15,889,858 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
i got this error probably due to flexGrid in vb.et form.

Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

the above WARNING message appears on form containing flexigrid after build is succeeded,but same error appears whenever form.showdialog is called(for form contaning flexigrid).

please help..
thanks,
ABHI.

Call Stack for this error:


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.CreateWithoutLicense(Guid clsid)
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.Add(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.CreateWithoutLicense(Guid clsid)
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)
Posted
Updated 28-Sep-10 19:54pm
v3
Comments
Simon_Whale 28-Sep-10 10:10am    
could do with know what you were doing? and what code caused the error or appeared to cause the error?
TheyCallMeMrJames 28-Sep-10 10:11am    
What have you done to try to work through this? Can you try removing the component from the form? What about commenting out code that references it? Have you checked to make sure methods that are accessing it aren't firing before the control is created? I suggest setting some breakpoints, possibly setup a spike project to replicate the error and researching a little more...not much to go off of here.
abhishek.singh.valeteck 28-Sep-10 10:49am    
they all were workin fine but the error arose after installing and uninstalling the deployment perhaps.

FlexGrid?? Are you talking about the old VB6 FlexGrid? If so, why are you using it??
 
Share this answer
 
Comments
abhishek.singh.valeteck 28-Sep-10 10:38am    
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
abhishek.singh.valeteck 28-Sep-10 10:39am    
flexgrid....AxMSHierarchicalFlexGridLib.AxMSHFlexGrid
thats what i m required to do ...no choice :-(
Take a look at this[^] thread on the MSDN Forums. Follow the links provided to see if there is a solution there.
 
Share this answer
 
Comments
abhishek.singh.valeteck 29-Sep-10 1:52am    
the above WARNING message appears on form containing flexigrid after build is succeeded,but same error appears whenever form.showdialog is called(for form contaning flexigrid).
Thanks abhi
Basicalyy, it's telling you that the FlexGrid is not installed or not installed properly on your machine.
 
Share this answer
 
Comments
abhishek.singh.valeteck 29-Sep-10 1:43am    
so then how to install it??i have registerd "AxInterop.MSHierarchicalFlexGridLib" and all other DLL's.
Hi Guys,

Thanks for your valuable suggestion :thumbsup:.i found the solution myself. :) -:

added refrence of the COM component Microsoft Hierarchical FlexGrid Control 6.0 (OLEDB) from the C:\WINDOWS\system32\MSHFLXGD.OCX which was not included in the project refrence folder.

and this worked :laugh:


Regards,
Abhi
 
Share this answer
 
Hi Guys,

Thanks for your valuable suggestion Thumbs Up | :thumbsup: .i found the solution myself. Smile | :) -:

added refrence of the COM component Microsoft Hierarchical FlexGrid Control 6.0 (OLEDB) from the C:\WINDOWS\system32\MSHFLXGD.OCX which was not included in the project refrence folder.

and this worked Laugh | :laugh:


Regards,
Abhi
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900