How to Solve “Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154”

Problem: When calling the method Modem.Init(), this error appears – “Retrieving the
COM class factory for component with CLSID {C7B56BA9-90BC-4B2B-BA02-
DF1FCBE506A7} failed due to the following error: 80040154.

Solution: