ADX Loader Error code: 0x80131040

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

ADX Loader Error code: 0x80131040
installing addin using WIX script works fine, but start Outlook results in message box with "ADX Loader Error code: 0x80131040" 
Harald Binkle


Guest


Hi,
When I install my addin (WIX installer) the setup runs through fine.
But when I then open Outlook I get a message box telling
"ADX Loader Error code: 0x80131040" and the addin is not loaded.
Additionally a second addin using on older add-in-express version (V6) disapears too.
Any ideas what may cause this?

Here is installer log:
Add-in Express Registrator Log File: 03/21/2013 10:04:55

Installation directory: C:\Program Files (x86)\JAM Software\Exchange Server Toolbox Outlook Add-in\
Registrator version: 7.1.4050.1
Operating System: Microsoft Windows 7 Ultimate Edition Service Pack 1 (build 7601), 64-bit
Process Owner: System
Command Line: "C:\Program Files (x86)\JAM Software\Exchange Server Toolbox Outlook Add-in\adxregistrator.exe" /install=EstOlAddin.dll /privileges=admin /log=Install.log
Run 'As Administrator': Yes
Process Elevated: Yes
Integrity Level: System
UAC (User Account Control): On
--------------------------------------------------------------
10:04:55 0168 Starting the add-in registration process.
10:04:55 0168 Loading mscoree.dll
10:04:55 0168 Success.
10:04:55 0168 .NET Framework installation directory:
10:04:55 0168 The latest version of .NET Framework: 'v4.0.30319'
10:04:55 0168 Loading CLR: v4.0.30319.
10:04:55 0168 Calling CLRCreateInstance method.
10:04:55 0168 Success.
10:04:55 0168 Calling GetRuntime method.
10:04:55 0168 Success.
10:04:55 0168 Checking if the hosting API of .NET Framework v4.0 beta is installed.
10:04:55 0168 The hosting API is up to date.
10:04:55 0168 Calling GetInterface method for the CorRuntimeHost interface.
10:04:55 0168 Success.
10:04:55 0168 Starting CLR...
10:04:55 0168 Success.
10:04:55 0168 Getting the CLR version.
10:04:55 0168 The CLR v4.0.30319 has been initialized successfully.
10:04:55 0168 Creating a new domain setup.
10:04:55 0168 Success.
10:04:55 0168 Getting the add-in directory.
10:04:55 0168 Success. The directory is 'C:\Program Files (x86)\JAM Software\Exchange Server Toolbox Outlook Add-in\'
10:04:55 0168 The 'shadow copy' is disabled.
10:04:55 0168 Creating a new application domain.
10:04:55 0168 Success.
10:04:55 0168 Getting the base directory for the domain.
10:04:55 0168 Success. The directory is 'C:\Program Files (x86)\JAM Software\Exchange Server Toolbox Outlook Add-in\'.
10:04:55 0168 Searching for the Add-in Express core library.
10:04:55 0168 Success. The 'AddinExpress.MSO.2005.dll' file is found.
10:04:55 0168 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
10:04:55 0168 Assembly identity is 'AddinExpress.MSO.2005'.
10:04:55 0168 Success.
10:04:55 0168 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
10:04:55 0168 Success.
10:04:55 0168 Calling the managed registration procedure.
10:04:55 0604 Connecting to the application domain of the Add-in Express loader.
10:04:55 0604 Success.
10:04:55 0604 Loading the 'estoladdin.dll' assembly.
10:04:55 0604 Success.
10:04:55 0604 Registering the 'estoladdin.dll' assembly (administrator).
10:04:57 0604 The ' estoladdin.dll' assembly has been registered successfully.
10:04:57 0168 Success.
10:04:57 0168 The add-in registration process is completed with HRESULT = 0.


Greetings

Harry
Posted 21 Mar, 2013 04:13:14 Top
Andrei Smolin


Add-in Express team


Posts: 18791
Joined: 2006-05-11
Hello Harald,

0x80131040 = "The located assembly's manifest definition does not match the assembly reference".

Can ypou please make sure that the installer delivers the assemblies that you use when building the add-in?

As to the other add-in, I wonder if your new add-in uses the same ProgId and/or GUID.


Andrei Smolin
Add-in Express Team Leader
Posted 22 Mar, 2013 09:09:05 Top
Harald Binkle


Guest


Hello Andrei,
"I wonder if your new add-in uses the same ProgId and/or GUID."
This was a great hint. for some reason the second addin hat the same UpgradeID like the first.
So installing my (first) uninstalled the files of the second.
When then Outlook starts ADX Loader does no longer find the addin assemblies.

So that error code means that loader did not find the addin assembly?

Why don't you provide a table with descritpion of the error codes somewhere?
Posted 22 Mar, 2013 10:00:22 Top
Andrei Smolin


Add-in Express team


Posts: 18791
Joined: 2006-05-11
Harald,

This error code is generated by .NET.

A list of system error codes is at http://msdn.microsoft.com/en-us/library/windows/desktop/ms681381(v=vs.85).aspx. As to .NET errors, I don't know if such a list exists.


Andrei Smolin
Add-in Express Team Leader
Posted 22 Mar, 2013 10:51:36 Top