Registration Fails During Install - manifest definition does not match the assembly reference

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

Registration Fails During Install - manifest definition does not match the assembly reference
assembly's manifest definition does not match the assembly reference 
Datascout Datascout


Guest


Hi Guys,

I have a user who is experiencing issues installing an add-in.
I am using Advanced Installer to install the add-in and use a Custom Action to call adxregistrator.exe.
This installer works on other computers.

From the log I have the following:

Installation directory: C:\Users\Madison S\AppData\Roaming\Datascout\Copy-Fast\
Registrator version: 7.2.4055.0
Operating System: Microsoft (build 9200), 64-bit
Process Owner: Administrator
Command Line: "C:\Users\Madison S\AppData\Roaming\Datascout\Copy-Fast\adxregistrator.exe" /install=Express.dll /privileges=user
Run 'As Administrator': Yes
Process Elevated: Yes
Integrity Level: High
UAC (User Account Control): On
--------------------------------------------------------------

14:54:30 0392 Calling the managed registration procedure.
14:54:31 0392 Managed Error:
(Inner Exception)
Date and Time: 27/07/2016 14:54:31
Machine Name: MADISON
IP Address: fe80::d5c6:e356:1aa2:853b%21
Current User: Madison\Madison S

Application Domain: C:\Users\Madison S\AppData\Roaming\Datascout\Copy-Fast\
Assembly Codebase: file:///C:/Users/Madison S/AppData/Roaming/Datascout/Copy-Fast/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=8.2.4371.0, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 8.2.4371.0

Exception Source:
Exception Type: System.IO.FileLoadException
Exception Message: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

(Outer Exception)
Date and Time: 27/07/2016 14:54:31
Machine Name: MADISON
IP Address: fe80::d5c6:e356:1aa2:853b%21
Current User: Madison\Madison S

Application Domain: C:\Users\Madison S\AppData\Roaming\Datascout\Copy-Fast\
Assembly Codebase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
Assembly Full Name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Assembly Version: 4.0.0.0

Exception Source: mscorlib
Exception Type: System.IO.FileLoadException
Exception Message: Could not load file or assembly 'AddinExpress.WD.2005, Version=8.2.4371.2005, Culture=neutral, PublicKeyToken=e69a7e0f3592d2b8' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Exception Target Site: GetExportedTypes



Any suggestions ?

with thanks - Marcus
Posted 27 Jul, 2016 09:51:38 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Hello Marcus,

Datascout Datascout writes:
Exception Message: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


Typically this occurs when your add-in uses a set of assemblies other than the set assemblies that you use when building your add-in. Say, you don't deploy an interop assembly and the add-in uses the interop assembly installed on that PC; you get the issue if the interop assembly is of a different version. Also, this occurs when you deploy a dependency of a wrong version, vulture, or bitness.


Andrei Smolin
Add-in Express Team Leader
Posted 27 Jul, 2016 10:32:33 Top
Datascout Datascout


Guest


Thanks for the prompt reply, Andrei.

So from what I understand you're saying, perhaps the safest solution would be to ensure I include all the assemblies my project references into the installation folder.

So for example, the project references System.Drawing.dll for which I have v4.0.30319 installed. I should include this in the install folder rather than relying on what's in the GAC on the target machine.

Would that be correct?

with thanks - Marcus
Posted 27 Jul, 2016 10:47:48 Top
nwein




Posts: 577
Joined: 2011-03-28
That's not the problem, System.Drawing is part of the .NET framework, you definitely don't need to include that.
From the error you've provided it looks like you're not including the AddinExpress.WD.2005.dll. Include it and it should fix your problem.
Posted 27 Jul, 2016 15:42:23 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Oh, thank you, Nir!

Hello Marcus,

Indeed, the issue can be caused by AddinExpress.WD.2005.dll missing.


Andrei Smolin
Add-in Express Team Leader
Posted 28 Jul, 2016 00:37:59 Top
Datascout Datascout


Guest


Thank you gentlemen - well spotted.

I went through the Advanced Installer set-up and found that I had indeed accidently deleted the reference to AddinExpress.WD.2005. My bad !

If I'd read the error log more closely, I would have picked that up.

Thanks for your help.
Posted 28 Jul, 2016 01:55:16 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
No problem! Absolutely!


Andrei Smolin
Add-in Express Team Leader
Posted 28 Jul, 2016 02:29:20 Top