Hi,
I developed a windows application in Vb.Net 2003.It is working fine in this.
But when I am trying to convert this into .Net 2005 I am getting this error.
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSN OTREG))
at System.Windows. Forms.UnsafeNat iveMethods.CoCr eateInstance(Gu id& clsid, Object punkOuter, Int32 context, Guid& iid)
at System.Windows. Forms.AxHost.Cr eateWithoutLice nse(Guid clsid)
at System.Windows. Forms.AxHost.Cr eateInstanceCor e(Guid clsid)
at System.Windows. Forms.AxHost.Cr eateInstance()
at System.Windows. Forms.AxHost.Ge tOcxCreate()
at System.Windows. Forms.AxHost.se t_Site(ISite value)
at System.Componen tModel.Containe r.Add(IComponen t component, String name)
at System.Componen tModel.Design.D esignerHost.Add (IComponent component, String name)
at System.Componen tModel.Design.D esignerHost.Sys tem.ComponentMo del.Design.IDes ignerHost.Creat eComponent(Type componentType, String name)
at System.Componen tModel.Design.S erialization.De signerSerializa tionManager.Cre ateInstance(Typ e type, ICollection arguments, String name, Boolean addToContainer)
at System.Componen tModel.Design.S erialization.De signerSerializa tionManager.Sys tem.ComponentMo del.Design.Seri alization.IDesi gnerSerializati onManager.Creat eInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.Componen tModel.Design.S erialization.Co deDomSerializer Base.Deserializ eInstance(IDesi gnerSerializati onManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.Componen tModel.Design.S erialization.Co mponentCodeDomS erializer.Deser ializeInstance( IDesignerSerial izationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.Componen tModel.Design.S erialization.Co deDomSerializer Base.Deserializ eExpression(IDe signerSerializa tionManager manager, String name, CodeExpression expression)
at System.Componen tModel.Design.S erialization.Co deDomSerializer .DeserializeSta tementToInstanc e(IDesignerSeri alizationManage r manager, CodeStatement statement)
at System.Componen tModel.Design.S erialization.Co deDomSerializer .Deserialize(ID esignerSerializ ationManager manager, Object codeObject)
at System.Windows. Forms.Design.Co ntrolCodeDomSer ializer.Deseria lize(IDesignerS erializationMan ager manager, Object codeObject)
at System.Componen tModel.Design.S erialization.Ty peCodeDomSerial izer.Deserializ eName(IDesigner SerializationMa nager manager, String name, CodeStatementCo llection statements)
I am seeing a lot of people reporting this error, on other forums, but no one has an answer
Please anyone help me how to resolve this problem.
Regards
Pavani.
I developed a windows application in Vb.Net 2003.It is working fine in this.
But when I am trying to convert this into .Net 2005 I am getting this error.
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSN OTREG))
at System.Windows. Forms.UnsafeNat iveMethods.CoCr eateInstance(Gu id& clsid, Object punkOuter, Int32 context, Guid& iid)
at System.Windows. Forms.AxHost.Cr eateWithoutLice nse(Guid clsid)
at System.Windows. Forms.AxHost.Cr eateInstanceCor e(Guid clsid)
at System.Windows. Forms.AxHost.Cr eateInstance()
at System.Windows. Forms.AxHost.Ge tOcxCreate()
at System.Windows. Forms.AxHost.se t_Site(ISite value)
at System.Componen tModel.Containe r.Add(IComponen t component, String name)
at System.Componen tModel.Design.D esignerHost.Add (IComponent component, String name)
at System.Componen tModel.Design.D esignerHost.Sys tem.ComponentMo del.Design.IDes ignerHost.Creat eComponent(Type componentType, String name)
at System.Componen tModel.Design.S erialization.De signerSerializa tionManager.Cre ateInstance(Typ e type, ICollection arguments, String name, Boolean addToContainer)
at System.Componen tModel.Design.S erialization.De signerSerializa tionManager.Sys tem.ComponentMo del.Design.Seri alization.IDesi gnerSerializati onManager.Creat eInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.Componen tModel.Design.S erialization.Co deDomSerializer Base.Deserializ eInstance(IDesi gnerSerializati onManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.Componen tModel.Design.S erialization.Co mponentCodeDomS erializer.Deser ializeInstance( IDesignerSerial izationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.Componen tModel.Design.S erialization.Co deDomSerializer Base.Deserializ eExpression(IDe signerSerializa tionManager manager, String name, CodeExpression expression)
at System.Componen tModel.Design.S erialization.Co deDomSerializer .DeserializeSta tementToInstanc e(IDesignerSeri alizationManage r manager, CodeStatement statement)
at System.Componen tModel.Design.S erialization.Co deDomSerializer .Deserialize(ID esignerSerializ ationManager manager, Object codeObject)
at System.Windows. Forms.Design.Co ntrolCodeDomSer ializer.Deseria lize(IDesignerS erializationMan ager manager, Object codeObject)
at System.Componen tModel.Design.S erialization.Ty peCodeDomSerial izer.Deserializ eName(IDesigner SerializationMa nager manager, String name, CodeStatementCo llection statements)
I am seeing a lot of people reporting this error, on other forums, but no one has an answer
Please anyone help me how to resolve this problem.
Regards
Pavani.
Comment