Fix To: Retrieving the COM Class Factory for Component with CLSID Error

In this blog you will learn how to resolve the error: Retrieving the COM class factory for component with CLSID {00020819-0000-0000-C000-000000000046} failed due to the following error: 80040154.

Snag it for the error,



Before changing the code.



The above marked line caused the problem.

After changing the code,



The above change resolved my problem, and I'm sharing the same for others.