Connecting Tech Pros Worldwide Forums | Help | Site Map

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

Member
 
Join Date: Mar 2008
Posts: 53
#1: Jun 7 '08
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_CLASSNOTREG))


at System.Windows.Forms.UnsafeNativeMethods.CoCreateI nstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
at System.Windows.Forms.AxHost.CreateWithoutLicense(G uid clsid)
at System.Windows.Forms.AxHost.CreateInstanceCore(Gui d 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(ICom ponent component, String name)
at System.ComponentModel.Design.DesignerHost.System.C omponentModel.Design.IDesignerHost.CreateComponent (Type componentType, String name)
at System.ComponentModel.Design.Serialization.Designe rSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.Designe rSerializationManager.System.ComponentModel.Design .Serialization.IDesignerSerializationManager.Creat eInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.CodeDom SerializerBase.DeserializeInstance(IDesignerSerial izationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.Compone ntCodeDomSerializer.DeserializeInstance(IDesignerS erializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.CodeDom SerializerBase.DeserializeExpression(IDesignerSeri alizationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDom Serializer.DeserializeStatementToInstance(IDesigne rSerializationManager manager, CodeStatement statement)
at System.ComponentModel.Design.Serialization.CodeDom Serializer.Deserialize(IDesignerSerializationManag er manager, Object codeObject)
at System.Windows.Forms.Design.ControlCodeDomSerializ er.Deserialize(IDesignerSerializationManager manager, Object codeObject)
at System.ComponentModel.Design.Serialization.TypeCod eDomSerializer.DeserializeName(IDesignerSerializat ionManager manager, String name, CodeStatementCollection 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.

dip_developer's Avatar
Expert
 
Join Date: Aug 2006
Location: Asansol
Posts: 641
#2: Jun 9 '08

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


try to repair your OWC ["Microsoft Office 2003 Web Components"] in your machine...
...........
Office Web Components are a collection of Component Object Model (COM) controls for publishing spreadsheets, charts, and databases to the Web............reinstall it....you can download it from here.......

[color=#800080]http://www.microsoft.com/downloads/details.aspx?FamilyID=7287252c-402e-4f72-97a5-e0fd290d4b76&DisplayLang=en[/color].

let us know whether it solves your problem....
Newbie
 
Join Date: Nov 2008
Posts: 5
#3: Oct 14 '09

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


i am having same problem but not with office component

error --------------------------------------------------------------------------
Retrieving the COM class factory for component with CLSID {E82A4C8E-7CBA-11D3-8D90-005004561FA5} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {E82A4C8E-7CBA-11D3-8D90-005004561FA5} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:


[COMException (0x80040154): Retrieving the COM class factory for component with CLSID {E82A4C8E-7CBA-11D3-8D90-005004561FA5} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).]
changeTable..ctor() +349
ASP.changetable_aspx..ctor() +50
__ASP.FastObjectFactory_app_web_tmf0e5go.Create_AS P_changetable_aspx() +72
System.Web.Compilation.BuildManager.CreateInstance FromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +360
System.Web.UI.PageHandlerFactory.GetHandlerHelper( HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +47
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +616
System.Web.MapHandlerExecutionStep.System.Web.Http Application.IExecutionStep.Execute() +159
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +347

-------------------------------------------------------------------------------------



this error comes when i am using my edp-api.dll file(installed when installing a softwrae which uses it. its a text based api. i am using it effectively on any 32 bit windows OS (means xp/2000/2003server/2008 server/windows 7) but getting above error at 64 bit system

i am trying with MS VS 2005 then i try MS VS 2008 all with same error

now i rectify this error when using this api with below configuration-
using windows xp 64 bit and MS VS 2010 but my web apge give error above and exe not(as i am using this edp - api on both exe applciation and on web applciation
Reply