QuickBooks – Due to the following errors, the COM class factories with CLSID {6C9E80E3-B780-4361-A693-5E5C6BDC83A9} is defeated: 80040154

I received this error:
Due to the following error, the retrieval of the COM factory for the component with CLSID {6C9E80E3-B780-4361-A693-5E5C6BDC83A9} failed: 80040154.

Dim smgrGlobal As QBSessionManager
smgrGlobal = New QBSessionManagerClass()

The second line is the wrong line.
I only This error appears on QB2013 and QBFC12. This does not happen with any previous version.
I can find that this error is due to the application not being compiled for x86 (if using “Any CPU”). But I have set My application is compiled to x86 instead of “Any CPU” and I still get this error.

COM error 0x80040154 literally means “class not registered”. The referenced “class” is the COM class of the component you are trying to instantiate. Here are the reasons why you might receive this error:

> As you pointed out, if you build your application with “x64” or “Any CPU” instead of “x86”, you will see this problem. This is because 32-bit processes use a different registry configuration than 64-bit processes Unit, and the registry is the place to keep the information about COM class registration.> You have not installed QBFC correctly on the current local computer. No matter what version of QBFC you use to develop the application, you must run each application Install the same version of QBFC on your computer. If you don’t do this, you may be lucky because someone else installed the correct version, but eventually you will see this problem. I want to emphasize: By default, QBFC does not have QuickBooks installed. .>(Unlikely but possible) Somehow, the COM registration information of QBFC is damaged. This problem can be solved by reinstalling the correct version of QBFC.

I received This error:
The retrieval of the COM factory for the component with CLSID {6C9E80E3-B780-4361-A693-5E5C6BDC83A9} failed due to the following error: 80040154.

Dim smgrGlobal As QBSessionManager
smgrGlobal = Ne w QBSessionManagerClass()

The second line is the wrong line.
I only get this error on QB2013 and QBFC12. This does not happen in any previous version.
I can Found, this error is due to the application not being compiled for x86 (if using “Any CPU”). But I have set my application to compile to x86 instead of “Any CPU” and I still get this error.

< /p>

COM error 0x80040154 literally means “class not registered”. The referenced “class” is the COM class of the component you are trying to instantiate. Here is how you might get this error The reason:

>As you pointed out, if you build your application with “x64” or “Any CPU” instead of “x86”, you will see this problem. This is because A 32-bit process uses a different registry hive than a 64-bit process, and the registry is where the information about COM class registration is kept.> You have not installed QBFC correctly on the current local computer. No matter which QBFC you use to develop your application What is the version, you must install the same version of QBFC on every computer running the application. If you don’t do this, you may be lucky because someone else installed the correct version, but eventually you will see this problem. I want to emphasize: By default, QBFC does not have QuickBooks installed.> (unlikely but possible) Somehow, the COM registration information of QBFC has been damaged. This problem can be solved by reinstalling the correct version of QBFC.

< /p>

Leave a Comment

Your email address will not be published.