I am running a console app in Visual Studio 2010 that uses the LicenseInitializer code. I get the following error when I try to run the app:
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in TestApp.exe
Additional information: Retrieving the COM class factory for component with CLSID {E01BE902-CC85-4B13-A828-02E789E0DDA9} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
It breaks on this line of code:
private IAoInitialize m_AoInit = new AoInitializeClass();
Any ideas? Am I not correctly registering the ESRI dll's?