Retrieving the COM class factory for component with CLSID failed due to the following error: 8007045a

kishan picture kishan · Nov 19, 2013 · Viewed 7.2k times · Source

I am new to VB Dot Net. I am using ComponentOne True OLE DbGrid in my form. Now I need to add Value Items to my column.So i tried this: TDBGrid1.Columns(14).ValueItems.Add(New TrueOleDBGrid80.ValueItem()) TDBGrid1.Columns(14).ValueItems(2).Value = 2 My code is compiling and running well. But when i try to run my exe on client machine it gives me Error: "Retrieving the COM class factory for component with CLSID failed due to the following error: 8007045a " for the above ValueItems.Add() line. Please, help me. Thanks

Answer

Mohita picture Mohita · Jan 15, 2014

The issue seems to be due to difference in the processor on which the application was created and is being run on. You might look for the respective dll in the following locations, use it in your project and see if it solves your issue: 64 bit machine : HKEY_CLASSES_ROOT\CLSID{###}\InprocServer32 32 bit machine : HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\CLSID{###}\InprocServer32.

A few more suggetions can be found at the following links :

How to repair COMException error 80040154?

Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154 VB.net

Regards, Mohita