Add-in loading failed, CLRCreateInstance

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

Add-in loading failed, CLRCreateInstance
 
rsturm


Guest


On the machine of one of our customers the add-in will not load. It seems to be failing at calling CLRCreateInstance.
On the machine both the Client and the Full .NET package is installed, v4.0.30319.

The loader log:

Add-in Express Loader Log File: 05/05/2011 07:26:38

Startup directory: C:\Program Files\OurAppName\
Loader version: 6.2.3051.0
Operating System: Microsoft Windows XP Professional Service Pack 3 (build 2600)
Process Owner: Administrator
Command Line: "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE" /recycle
Run 'As Administrator': Yes
Process Elevated: No
Integrity Level: Untrusted
UAC (User Account Control): Off
------------------------------------------------------------------------
07:26:38 864 5876 Start.
07:26:38 864 5876 Reading the registry key 'HKEY_CLASSES_ROOT\CLSID\{DB822DCA-A1FF-45C8-A009-08FE8E701772}'
07:26:38 864 5876 Success. The registry key 'HKEY_CLASSES_ROOT\CLSID\{DB822DCA-A1FF-45C8-A009-08FE8E701772}' is closed.
07:26:38 864 5876 Converting the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID from string.
07:26:38 864 5876 Success.
07:26:38 864 5876 Attempting to get the class object by the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID.
07:26:38 864 5876 Success.
07:26:38 864 5876 Creating a new instance of the add-in loader.
07:26:38 864 5876 Success.
07:26:38 864 5876 Loading the configuration from the system registry.
07:26:38 864 5876 Getting the latest CLR version.
07:26:38 864 5876 The latest CLR version is 'v4.0.30319'.
07:26:38 864 5876 The configuration has been loaded successfully.
07:26:38 864 5876 Runtime version: v4.0.30319.
07:26:38 864 5876 Assembly name: OurAppName, PublicKeyToken=E19B5977C53E8806.
07:26:38 864 5876 Class name: OurAppName.AddinModule.
07:26:38 864 5876 Attempting to create a new instance of the managed add-in class: CLR - v4.0.30319
07:26:38 864 5876 Loading CLR: v4.0.30319.
07:26:38 864 5876 Calling CLRCreateInstance method.
07:26:39 864 5876 Failed.
07:26:39 864 5876 The loader will try to use the old Framework API.
07:26:39 864 5876 The CLR failed to be initialized. HRESULT = -2146232575.
07:26:39 864 5876 Error code: 0x80131701
Posted 23 May, 2011 04:44:11 Top
Eugene Astafiev


Guest


Hello Reinier,

Thank you for providing me with the adxloader.log file. I have noticed the following line in the log:

Loader version: 6.2.3051.0


It looks like you use an old build of Add-in Express 2010. You can download the latest build from our http://www.add-in-express.com/downloads/adxnet.php. Then please don't forget to replace the adxloader.dll file in the Loader folder of your project with a new one (see the Redistributables folder).

Also please make sure that your customer has installed the latest service packs for OS, .net framework and Office.
Posted 23 May, 2011 04:53:32 Top
rsturm


Guest


Hi Eugene,

We already shipped our product to a few thousand customers. This means we can't easily get them to use the latest addin express build. The 6.2.3051.0 version is the version that was used for the release and it seems to work good for the majority of our customers, but this specific customer has this problem.

Any tips or ideas on how to fix this without updating addin express would be appreciated.

They are using Windows XP with the latest service pack 3, Outlook 2003 v11.0.8326, .NET FW 4.0.30319 and they're up to date with Windows Update.
Posted 23 May, 2011 05:31:05 Top
Eugene Astafiev


Guest


Hi Reinier,

Please make sure that your customer has the full version of .net framework 4 installed on the PC. Also you can try to replace the adxloader.dll file on the target PC with a new http://www.add-in-express.com/downloads/adxloader.php. Anyway, please have a look at the similar http://www.add-in-express.com/forum/read.php?FID=5&TID=8831 thread.
Posted 23 May, 2011 06:36:56 Top