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





PostPosted: Visual C# General, Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Top

Hi,

I migrated a windows application which was written in c# (.net 2003) to .net 2005. But when i run my application it shows the following error Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

I am using AxInterop.MSChart20Lib.dll and Interop.MSChart20Lib.dll for the chart control. I am not able to register these 2 dlls.

Please help.

Regards,

Durga.




Visual C#17  
 
 
Mark Betz





PostPosted: Visual C# General, Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Top

What happens if you run regsvr32 /s on the two DLLs You might get an error back, and find out that it's something like a missing dependency lib.
 
 
carterwjeff





PostPosted: Visual C# General, Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Top

COM cannot find the Class that is not registered that ctrlServerX is.

RegSvr32 it or if you created it then ensure its declared correctly.



 
 
Figo Fei - MSFT





PostPosted: Visual C# General, Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Top

Hello

Here is a similar problem I found, hope it helps: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=216457&SiteID=1

Thank you



 
 
agdurga





PostPosted: Visual C# General, Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Top

Should I have MS Office front page to be installed for this to work

 
 
agdurga





PostPosted: Visual C# General, Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Top

If I try to register the dlls keeping them in bin folder, i get the error "module not found".

so i placed the dlls by creating a folder called dll in C:/

Now this is the error I get when i try to register "C:\dll\Interop.MSChart20Lib.dll was loaded, but the DllRegisterServer entry point was not found."

:-(



 
 
agdurga





PostPosted: Visual C# General, Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Top

The problem was the chart control was not working in 2005. Since the control is a VB component, it will work in systems having VB installed (by default, the mschrt20.ocx is present in C:\WINDOWS\system32). Else the .ocx file (mschrt20.ocx) required for the chart control needs to be registered.

The following steps must be taken:

  1. The mschrt20.ocx must be copied in C:\WINDOWS\system32 in .net 2005 system
  2. Registration of mschrt20.ocx must be done using “ regsvr32 “
  3. Run the project.