'System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {840177AB-C69A-463C-8FAF-8137489EF565}

System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {840177AB-C69A-463C-8FAF-8137489EF565} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

getting this error while running code on window 10, same code working fine on my window 7 can anyone please help me out in this.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source