System.IO.FileLoadException on install

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

System.IO.FileLoadException on install
 
BerndH




Posts: 99
Joined: 2014-09-23
Hi,
I wrote an add-in. My install give me an error on one system (having win7, 32bit and office2010). All other test systems (with Outlook 2013) are fine. The adxregistrator shows this:
...

Assembly Codebase: ... AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=7.6.4084.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 7.6.4084.2005
Exception Source:
Exception Type: System.IO.FileLoadException
Exception Message: Die gefundene Manifestdefinition der Assembly stimmt nicht mit dem Assemblyverweis ?berein. (Ausnahme von HRESULT: 0x80131040)
Exception Target Site: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
---- Stack Trace ----

(Outer Exception)
Date and Time: 31.07.2015 16:38:53
Machine Name: WIN-HCSDG7QO5F1
IP Address: fe80::f1b3:dc2d:f8de:3b5b%10
Current User: NT-AUTORIT?T\SYSTEM

Application Domain: C:\Program Files\...Add-In\
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: Die Datei oder Assembly "Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" oder eine Abh?ngigkeit davon wurde nicht gefunden. Die gefundene Manifestdefinition der Assembly stimmt nicht mit dem Assemblyverweis ?berein. (Ausnahme von HRESULT: 0x80131040)
Exception Target Site: GetSignature
---- Stack Trace ----

In my add-in (visual studio 2012) I use the Microsoft.Office.Interop.Outlook Version 12. So where?s this
"Version 15.0.0.0" coming from ?


Bernd
Posted 31 Jul, 2015 09:54:40 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Bernd,

Do you deploy Microsoft.Office.Interop.Outlook.dll version 12?


Andrei Smolin
Add-in Express Team Leader
Posted 31 Jul, 2015 10:19:46 Top
BerndH




Posts: 99
Joined: 2014-09-23
Yes,
It?s the 12er version.
The error is only on my win7-32bit with office 2010 test-system :-(

Bernd
Posted 03 Aug, 2015 01:19:14 Top
BerndH




Posts: 99
Joined: 2014-09-23
Solved!
The problem is sitting at my keyboard :-(

I had a reference to "Office (Vers. 15)" in my project. I just checked the MS.Office.interop, etc.
references many times. I just explaned it to someone else here and then I saw it.
Sorry for filling your forum :-)

Bernd
Posted 03 Aug, 2015 01:53:58 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Luckily, this simple mistake haven't taken too much time.


Andrei Smolin
Add-in Express Team Leader
Posted 03 Aug, 2015 02:18:43 Top