The loader failed creating an instance of the managed add-in class

Add-in Express™ Support Service
That's what is more important than anything else

The loader failed creating an instance of the managed add-in class
 
serdar dirican




Posts: 13
Joined: 2007-02-28
Hi,
One of my customers get this error (Operating System= Vista MS Office Version is 2007)

10:29:05 1636 Start.
10:29:05 1636 Reading the registry key 'HKEY_CLASSES_ROOT\CLSID\{AC9F7087-84B9-4FCE-BAA3-BC81B4A280E8}'
10:29:05 1636 Success. The registry key 'HKEY_CLASSES_ROOT\CLSID\{AC9F7087-84B9-4FCE-BAA3-BC81B4A280E8}' is closed.
10:29:05 1636 Converting the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID from string.
10:29:05 1636 Success.
10:29:05 1636 Attempting to get the class object by the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID.
10:29:05 1636 Success.
10:29:05 1636 Creating a new instance of the add-in loader.
10:29:05 1636 Success.
10:29:05 1636 Loading the configuration from the system registry.
10:29:05 1636 Getting the lates CLR version.
10:29:05 1636 The latest CLR version is 'v2.0.50727'.
10:29:05 1636 The configuration has been loaded successfully.
10:29:05 1636 Runtime version: v2.0.50727.
10:29:05 1636 Assembly name: "", PublicKeyToken=B338A28C5F95E1D4.
10:29:05 1636 Class name: "".
10:29:05 1636 Attempting to create a new instance of the managed add-in class: CLR - v2.0.50727
10:29:05 1636 Loading CLR: v2.0.50727.
10:29:05 1636 The CLR v2.0.50727 has been initialized successfully.
10:29:05 1636 Creating a new domain setup.
10:29:05 1636 Success.
10:29:05 1636 Getting the add-in directory.
10:29:05 1636 Success. The directory is ''
10:29:05 1636 The 'shadow copy' is enabled.
10:29:05 1636 Creating a new application domain.
10:29:05 1636 Success.
10:29:08 1636 The loader failed creating an instance of the managed add-in class. HResult = -2146232828.

Do you know why?
Posted 04 Feb, 2009 10:29:21 Top
Eugene Astafiev


Guest


Hi Serdar,

Do you have any code in the add-in module ctor?
Posted 04 Feb, 2009 11:04:06 Top
serdar dirican




Posts: 13
Joined: 2007-02-28
Only have InitializeComponent()

I don't know why this error occured. Only one customer report this error.
Posted 04 Feb, 2009 11:25:16 Top
serdar dirican




Posts: 13
Joined: 2007-02-28
by the way Loader version: 3.8.1891
Posted 04 Feb, 2009 11:27:02 Top
Eugene Astafiev


Guest



What version and build number of Add-in Express do you use?
Posted 04 Feb, 2009 11:35:03 Top
serdar dirican




Posts: 13
Joined: 2007-02-28
Loader version: 3.8.1891

I found from google this error is COR_E_TARGETINVOCATION. Do you know what this mean?
Posted 04 Feb, 2009 12:05:04 Top
Eugene Astafiev


Guest


I found from google this error is COR_E_TARGETINVOCATION. Do you know what this mean?


Unfortunately no.

You didn't answer my last question.
Posted 04 Feb, 2009 12:23:06 Top
serdar dirican




Posts: 13
Joined: 2007-02-28
AddinExpress.MSO.2005.dll version is 3.8.1891.2005
Posted 04 Feb, 2009 13:34:44 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hello Serdar,

You must move any custom initialization things from the module's constructor to AddinInitialize. Please pay attention that the same applies to any variables initialized on the module level.


Andrei Smolin
Add-in Express Team Leader
Posted 04 Feb, 2009 15:30:28 Top