Page 1 of 1

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

Posted: Sun Nov 03, 2013 10:15 pm
by 16664215
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

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

Posted: Tue Nov 05, 2013 9:17 am
by narcis
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.

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

Posted: Sun Nov 10, 2013 3:07 pm
by 16664215
Hi NarcĂ­s,
The problem was solved just compiling the application at 32 bit instead of 64.

Noy it works.

Andrea