Select to view content in your preferred language

Error Running LicenseInitializer

4718
2
06-17-2010 07:31 PM
SethPatrich
Deactivated User
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?

Thanks,
Seth
0 Kudos
2 Replies
FrankHochstrate
Deactivated User
No replies until now.

Do you have a solution by now?
I've got the same or a similar problem, but only on a windows 7 system.

Any helpful ideas are welcome.

Regards,
Frank
0 Kudos
BramVan_Helleputte1
Deactivated User

As ArcGIS is a 32bit application you have to change the target platform to x86 for the project that checks out the license;

Go to project properties > build > platform target > change anyCPU or whatever this says to x86

0 Kudos