I am building a GIS Application but whenever I run the code it's giving me this error
System.Runtime.InteropServices.COMException was unhandled
Retrieving the COM class factory for component with CLSID {FBF5715D-A05D-11D4-A64C-0008C711C8C1} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Also, in the Project Properties the Option for Register For COM Interop is disabled.
Best Answer
This could also be an issue of building the code using a
64 bit
configuration. You can try to selectx86
as the build platform which can solve this issue. To do this right-click the solution and selectConfiguration Manager
From there you can change thePlatform
of the project using the 32-bit .dll tox86