Sample .NET C# - error HRESULT: 0x80040154 (REGDB_E_CLASSNOT
Posted: 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
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