Sample .NET C# - error HRESULT: 0x80040154 (REGDB_E_CLASSNOT

TeeChart for ActiveX, COM and ASP
Post Reply
Andrea Cavalleri
Newbie
Newbie
Posts: 5
Joined: Mon Nov 19, 2012 12:00 am

Sample .NET C# - error HRESULT: 0x80040154 (REGDB_E_CLASSNOT

Post by Andrea Cavalleri » Sun Nov 03, 2013 10:15 pm

Hi,
I want to use the ActiveX Teechart control in a .NET C# program.

I have started reading the Dragging.sln sample but there is the error: "Interface not registered (HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))".

I have read the txt message:

===========================================

Use of Strong Named Assemblies
===========================================

If you compile Strong Named Assemblies then
imported ActiveX Controls must also be Strong
Named. The Utilities folder contains a Strong
Name compiled version of:

\Utilities\VS.NET\Strong Named DLLs
- AxInterop.TeeChart.dll
- TeeChart.dll

They may be used to replace the automatically
generated AxInterop.TeeChart.dll and
Interop.TeeChart.dll created when TeeChart AX
is added to a Windows Form. You should remove
auto-generated dlls from the references list in
the project Solution Explorer and from the
Obj folder of the project and Debug or Release
Bin folder. Then copy in the new Dlls to Obj
and Bin folders and reference the new Dlls from
their Obj folder location.


but it is not very clear.

I have removed the reference dlls from the list in the project Solution Explorer and then I have copied the DLL files from the "..\Utilities\Vs.net\Strong Named DLLs" directory to my "bin" and "obj" directories but the error is still present.

Is there a more detailed tutorial?

Andrea

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Sample .NET C# - error HRESULT: 0x80040154 (REGDB_E_CLASSNOT

Post by Narcís » Tue Nov 05, 2013 9:17 am

Hi Andrea,

This error message may indicate that your TeeChart ActiveX was not properly registered in your computer. You should try to manually register/unregister the TeeChart .ocx file using regsvr32 as explained here.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Andrea Cavalleri
Newbie
Newbie
Posts: 5
Joined: Mon Nov 19, 2012 12:00 am

Re: Sample .NET C# - error HRESULT: 0x80040154 (REGDB_E_CLASSNOT

Post by Andrea Cavalleri » Sun Nov 10, 2013 3:07 pm

Hi Narcís,
The problem was solved just compiling the application at 32 bit instead of 64.

Noy it works.

Andrea

Post Reply