Class not registered exception while creating the object of COM class in Visual studio 2017

  • Thread starter Thread starter RoshniDominic
  • Start date Start date
R

RoshniDominic

Guest
Hi,

My application contains one COM dll and one UI application. All the business logic are written inside the COM and the UI application is invoking these COM methods. It is working fine in Visual Studio 2015. But after migrating these projects into Visual Studio 2017,when tried to create the object of my COM class I am getting a runtime exception -"Retrieving the COM class factory for component with CLSID {DE48D7EB-F192-454B-BF19-BA45492F570B} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))." Same is happening with every COM class. The modification I made is in the Configuration properties of the COM dll I modified the Platform Toolset to Visual Studio 2017 (v141) from Visual Studio 2015 - Windows XP (v140_xp).

Could you please help me to resolve this error.

Continue reading...
 
Back
Top