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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pavanip
    New Member
    • Mar 2008
    • 53

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

    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.
  • dip_developer
    Recognized Expert Contributor
    • Aug 2006
    • 648

    #2
    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.c om/downloads/details.aspx?Fa milyID=7287252c-402e-4f72-97a5-e0fd290d4b76&Di splayLang=en[/color].

    let us know whether it solves your problem....

    Comment

    • gr8Ashish
      New Member
      • Nov 2008
      • 9

      #3
      same error

      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_CLASSN OTREG)).
      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_CLASSN OTREG)).

      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:

      <configuratio n>
      <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_CLASSN OTREG)).]
      changeTable..ct or() +349
      ASP.changetable _aspx..ctor() +50
      __ASP.FastObjec tFactory_app_we b_tmf0e5go.Crea te_ASP_changeta ble_aspx() +72
      System.Web.Comp ilation.BuildMa nager.CreateIns tanceFromVirtua lPath(VirtualPa th virtualPath, Type requiredBaseTyp e, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +360
      System.Web.UI.P ageHandlerFacto ry.GetHandlerHe lper(HttpContex t context, String requestType, VirtualPath virtualPath, String physicalPath) +47
      System.Web.Http Application.Map HttpHandler(Htt pContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +616
      System.Web.MapH andlerExecution Step.System.Web .HttpApplicatio n.IExecutionSte p.Execute() +159
      System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean& completedSynchr onously) +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

      Comment

      Working...