Excel addin failed to start on some computers.

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

Excel addin failed to start on some computers.
 
Florent Dugué




Posts: 49
Joined: 2009-09-09
Hello

We are deploying our addin on customers computers, and some of them gave us some troubles.
Some users can't use our addin, because it does not start (see the error log below)
They have other Excel addins, and it seems that users who have troubles have lots of addins.
If we untick all addins in Excel options (Com addins), and activate them one by one, they are all working fine, including our addin. But if we close and start Excel again, our addin fails to start.

Any idea ?
Thanks.

Florent.

---------------------------

Add-in Express Loader Log File: 04/06/2012 15:40:31

Startup directory: C:\Program Files (x86)\[Path to product]
Loader version: 6.6.3059.0
Operating System: Microsoft Windows 7 Professional Service Pack 1 (build 7601), 64-bit
Process Owner: Administrator
Command Line: "C:\Program Files (x86)\Microsoft Office\Office14\EXCEL.EXE"
Run 'As Administrator': No
Process Elevated: No
Integrity Level: Medium
UAC (User Account Control): Off
------------------------------------------------------------------------
15:40:31 1484 7928 Start.
15:40:31 1484 7928 Reading the registry key 'HKEY_CLASSES_ROOT\CLSID\{6C8C7462-D4C0-4042-83D8-0F1B44713515}'
15:40:31 1484 7928 Success. The registry key 'HKEY_CLASSES_ROOT\CLSID\{6C8C7462-D4C0-4042-83D8-0F1B44713515}' is closed.
15:40:31 1484 7928 Converting the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID from string.
15:40:31 1484 7928 Success.
15:40:31 1484 7928 Attempting to get the class object by the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID.
15:40:31 1484 7928 Success.
15:40:31 1484 7928 Creating a new instance of the add-in loader.
15:40:31 1484 7928 Loading mscoree.dll
15:40:31 1484 7928 Success.
15:40:31 1484 7928 Loading the configuration from the system registry.
15:40:31 1484 7928 Getting the latest CLR version.
15:40:31 1484 7928 The latest CLR version is 'v4.0.30319'.
15:40:31 1484 7928 The configuration has been loaded successfully.
15:40:31 1484 7928 Runtime version: v2.0.50727.
15:40:31 1484 7928 Assembly name: AddIn, PublicKeyToken=D285D4EED3DB0FD8.
15:40:31 1484 7928 Class name: AddIn.AddinModule.
15:40:31 1484 7928 Registry key: CLSID\{6C8C7462-D4C0-4042-83D8-0F1B44713515}.
15:40:31 1484 7928 Attempting to create a new instance of the managed add-in class: CLR - v2.0.50727
15:40:31 1484 7928 Loading CLR: v2.0.50727.
15:40:31 1484 7928 Calling CLRCreateInstance method.
15:40:31 1484 7928 Success.
15:40:31 1484 7928 Calling GetRuntime method.
15:40:31 1484 7928 Success.
15:40:31 1484 7928 Checking if the hosting API of .NET Framework v4.0 beta is installed.
15:40:31 1484 7928 The hosting API is up to date.
15:40:31 1484 7928 Calling GetInterface method for the CorRuntimeHost interface.
15:40:31 1484 7928 Error code: 0x80131022
Posted 10 Apr, 2012 07:47:48 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Florent,

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

UAC (User Account Control): Off


It looks like you keep the UAC turned off. Instead, we recommend keeping it on. You can read more about this in the User Account Control (UAC) on Vista, Windows 7 and Windows Server 2008 section of the online documentation.

15:40:31 1484 7928 Error code: 0x80131022


I have found the similar forum threads with such error code:

ADXLoader, installation error 0x80131022...
adxloader fails to register with .net 4 - error 0x80131022 - and also locks add-in dlls
ADX Loader Error 0x80131701

How did you register the add-in on the PC? Did you use the adxregistrator.exe utility? And, finally, did you register the add-in for all users?
.NET, Extended MAPI, Windows Phone & RT
Posted 10 Apr, 2012 08:05:39 Top
Florent Dugué




Posts: 49
Joined: 2009-09-09
Hi

Unfortunately, as it is our customer policy, it is not possible to force him to change its management of UAC.
I have also read the other topics, but I did not see any solutions in these 3 posts, although I did not try the fixed dll from may 2010. And I can not also ask them to uninstall framework 4.
The addin is registered during the setup using adxregistrator, using privileges=admin, as users are not administrator of their computer. I have yet to check the registry content.
Maybe you missed two important points :
- addin works on almost all computers. Only 2 have problems.
- the addin works if all other Excel addins are disabled, and also if we removed it from excel and add it again, but only for the current Excel session.

I read that error 0x80131701 is about "memory pressure". Do you have any information about this ?

Thanks.
Posted 10 Apr, 2012 10:09:21 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Florent,

May I see the adxregistrator.log from the problematic PCs? Please note that you need to have administrator rights to register the add-in correctly with privileges attribute set to the admin value.

Did you try to disable all other Excel add-ins? Does your add-in work as expected? Do you get any error after restarting Excel?

It looks like a new app domain can't be initialized.
.NET, Extended MAPI, Windows Phone & RT
Posted 10 Apr, 2012 10:23:00 Top
Florent Dugué




Posts: 49
Joined: 2009-09-09
Please see the adxregistrator.log on a computer which has the error below.
Disabling all other addins makes our one to work as expected.
After restarting Excel, if we leave the other addins disabled, our addin works.
But if we re-enable the others on start, our addin fails to start.

------------------------------------


Add-in Express Registrator Log File: 04/06/2012 15:35:10

Installation directory: C:\Program Files (x86)\[Path to product]
Registrator version: 6.6.3059.0
Operating System: Microsoft Windows 7 Professional Service Pack 1 (build 7601), 64-bit
Process Owner: Administrator
Command Line: "C:\Program Files (x86)\[Path to product]\adxregistrator.exe" /install="AddIn.dll" /privileges=admin
Run 'As Administrator': Yes
Process Elevated: Yes
Integrity Level: High
UAC (User Account Control): Off
--------------------------------------------------------------
15:35:10 0176 Starting the add-in registration process.
15:35:10 0176 Loading mscoree.dll
15:35:10 0176 Success.
15:35:10 0176 .NET Framework installation directory:
15:35:10 0176 The latest version of .NET Framework: 'v4.0.30319'
15:35:10 0176 Loading CLR: v4.0.30319.
15:35:10 0176 Calling CLRCreateInstance method.
15:35:10 0176 Success.
15:35:10 0176 Calling GetRuntime method.
15:35:10 0176 Success.
15:35:10 0176 Checking if the hosting API of .NET Framework v4.0 beta is installed.
15:35:10 0176 The hosting API is up to date.
15:35:10 0176 Calling GetInterface method for the CorRuntimeHost interface.
15:35:10 0176 Success.
15:35:10 0176 Starting CLR...
15:35:11 0176 Success.
15:35:11 0176 Getting the CLR version.
15:35:11 0176 The CLR v4.0.30319 has been initialized successfully.
15:35:11 0176 Creating a new domain setup.
15:35:11 0176 Success.
15:35:11 0176 Getting the add-in directory.
15:35:11 0176 Success. The directory is 'C:\Program Files (x86)\[Path to product]'
15:35:11 0176 The 'shadow copy' is disabled.
15:35:11 0176 Creating a new application domain.
15:35:11 0176 Success.
15:35:11 0176 Getting the base directory for the domain.
15:35:11 0176 Success. The directory is 'C:\Program Files (x86)\[Path to product]'.
15:35:11 0176 Searching for the Add-in Express core library.
15:35:11 0176 Success. The 'AddinExpress.MSO.2005.dll' file is found.
15:35:11 0176 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
15:35:11 0176 Assembly identity is 'AddinExpress.MSO.2005'.
15:35:13 0176 Success.
15:35:13 0176 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
15:35:13 0176 Success.
15:35:13 0176 Calling the managed registration procedure.
15:35:14 0624 Connecting to the application domain of the Add-in Express loader.
15:35:14 0624 Success.
15:35:14 0624 Loading the 'addin.dll' assembly.
15:35:14 0624 Success.
15:35:14 0624 Registering the 'addin.dll' assembly (administrator).
15:35:17 0624 The 'addin.dll' assembly has been registered successfully.
15:35:17 0176 Success.
15:35:17 0176 The add-in registration process is completed with HRESULT = 0.
Posted 10 Apr, 2012 10:31:23 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Florent,

Please try to enable the UAC on the PC (set it to the default level in Windows 7) and re-install your add-in. Does it help?

Our documentation states the following:

The User Account Control (UAC) should be turned on Vista; it should be set to the default level on windows 2008 Server and Windows 7. This is necessary when you install a COM add-in for all users on the PC, that is, when the RegisterForAllUsers property of the add-in module is true.


This is restriction of systems with UAC.
.NET, Extended MAPI, Windows Phone & RT
Posted 10 Apr, 2012 10:45:23 Top
Florent Dugué




Posts: 49
Joined: 2009-09-09
Thanks for your response.

I should be able to check at the end of the week if enabling UAC fix the error.
I will let you now.

A last question, do you think that creating a setup with "InstallAllUsers" to off will let the addin run without enabling UAC ?
Posted 10 Apr, 2012 10:53:57 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Florent,

First of all, you need to use the RegisterForAllUsers property of the add-in module (not the InstallAllUsers property of the setup project in Visual Studio).

Note that when UAC is off, a per-user add-in (RegisterForAllUsers = false) installed by an administrator will not work. That is why I always recommend keeping the UAC enabled.

Anyway, please keep me notified.
.NET, Extended MAPI, Windows Phone & RT
Posted 10 Apr, 2012 11:05:40 Top
Florent Dugué




Posts: 49
Joined: 2009-09-09
Thanks for precising all these points.
I will let you know.
Posted 10 Apr, 2012 11:19:28 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
You are always welcome, Florent! ;-)

I will be waiting for the results.
.NET, Extended MAPI, Windows Phone & RT
Posted 10 Apr, 2012 11:22:15 Top