Used by:
Win 7x64;
Visual Studio 2019;
MindManager 2019 - MM 19.1.198 (32-x.) 10.01.2019;
Problem:
My code is throwing the COM class not registered error on the line:
mm.Topic topic = new mm.Topic ();
. I get an error.
Error:
Failed to get COM class factory for component with CLSID {169B91A2-8B3F-4C13-8FD6-81D4C2F76F3D} due to the following error: 80040154 The class is not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
The code:
using mm = Mindjet.MindManager.Interop;
mm.Application app;
mm.Document docActiv;
public Form1()
{
InitializeComponent();
app = new mm.Application();
}
public void SetXMLProperty(string xmlContent)
{
docActiv = app.ActiveDocument;
mm.Topic topic = new mm.Topic();
topic.Xml = xmlContent;
docActiv.FloatingTopics.Insert(topic);
}
Question.
What library do I need to register for the Topic
class?
Based on the comment pstrjds
- quote:
> I found this potential workaround` Using a 32bit COM object in a 64bit environment https://techtalk.gfi.com/32bit-object-64bit-environment/
I perform the actions according to the instructions:
1. I defined the GUID of the COM object.
See Picture-1
.
2. I am searching for an object:
HKey_Classes_Root\Wow6432Node\CLSID\[GUID]
3. The result.
I have no object {1E1D4AF9-6640-49C1-A33B-8CE8B47C9785} in the folder HKey_Classes_Root\Wow6432Node\CLSID\[GUID]
no.
The object {1E1D4AF9-6640-49C1-A33B-8CE8B47C9785} is located in the folders below. (if required, I can attach pictures of the contents of these folders)
HKEY_CLASSES_ROOT
HKEY_CLASSES_ROOT\TypeLib{1E1D4AF9-6640-49C1-A33B-8CE8B47C9785}
HKEY_CLASSES_ROOT\Wow6432Node\TypeLib{1E1D4AF9-6640-49C1-A33B-8CE8B47C9785}
HKEY_LOCAL_MACHINE
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib{1E1D4AF9-6640-49C1-A33B-8CE8B47C9785}
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\TypeLib{1E1D4AF9-6640-49C1-A33B-8CE8B47C9785}
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\TypeLib{1E1D4AF9-6640-49C1-A33B-8CE8B47C9785}
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\Wow6432Node\TypeLib{1E1D4AF9-6640-49C1-A33B-8CE8B47C9785}
Question.Update-1
1. In which folder do I need to follow the instructions?
I am trying to change the solution platform.
For x86
After - 2 sec. mistake.
Line 36. mm.Topic topic = new mm.Topic ();
Failed to get COM class factory for component with CLSID {169B91A2-8B3F-4C13-8FD6-81D4C2F76F3D}
due to the following error: 80040154 The class is not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
For x64
After - 25 sec. mistake.
Line 32. app = new mm.Application ();
Failed to get COM class factory for component with CLSID {CE786F70-B064-4766-B24D-E6D942936D50} due to the following error: 80080005 Error while executing server application (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
The note.
For X86 requires a component with CLSID {169B91A2-8B3F-4C13-8FD6-81D4C2F76F3D};
For x64 equires a component with CLSID {CE786F70-B064-4766-B24D-E6D942936D50}.
User contributions licensed under CC BY-SA 3.0