Exceptions when opening Office application

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

Exceptions when opening Office application
 
David Potashinsky




Posts: 31
Joined: 2010-02-14
One of our users complains to exceptions when opening Office application.
Can you, please, help to understand what's wrong?

(Inner Exception)
Date and Time: 19.12.2016 22:02:31
Machine Name: MARKONJAA-PC
IP Address: fe80::81f0:84be:cc22:349%18
Current User: Markonjaa-PC\Markonjaa

Application Domain: E:\Users\Markonjaa\AppData\Roaming\WatchDox\Windows Plugin\
Assembly Codebase: file:///E:/Users/Markonjaa/AppData/Roaming/WatchDox/Windows Plugin/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: Could not load file or assembly 'Microsoft.Office.Interop.PowerPoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Posted 20 Dec, 2016 05:46:18 Top
David Potashinsky




Posts: 31
Joined: 2010-02-14
this user has:
Office 2013 installed with x32 MSO.dll version 15.0.4701.1000.
Office 2013 installed with x32 Word version 15.0.4701.1001.
Office 2013 installed with x32 Excel version 15.0.4701.1001.
Office 2013 installed with x32 PowerPoint version 15.0.4701.1001.
Office 2013 installed with x32 Outlook version 15.0.4701.1000.

on Microsoft Windows NT 6.1.7601 Service Pack 1 - 32 bit
Posted 20 Dec, 2016 05:48:42 Top
Andrei Smolin


Add-in Express team


Posts: 14115
Joined: 2006-05-11
Hello David,

David Potashinsky writes:
Exception Message: Could not load file or assembly 'Microsoft.Office.Interop.PowerPoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


You haven't deployed Microsoft.Office.Interop.PowerPoint.dll (version 12). The CLR has found a Microsoft.Office.Interop.PowerPoint.dll file which is of a different version or localization or both; it can't be used.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 20 Dec, 2016 06:44:50 Top
David Potashinsky




Posts: 31
Joined: 2010-02-14
we do deploy this DLL and it placed next to plugin, in same directory.
can you please give me a hints to investigate what special on this machine ?
Posted 20 Dec, 2016 07:06:32 Top
Andrei Smolin


Add-in Express team


Posts: 14115
Joined: 2006-05-11
David,

Make sure that you deploy the very same DLL which you use to build the add-in. The issue is a mismatch between two assemblies: a DLL referenced by your add-in and the assembly which is found on the target machine. The mismatch may be caused by a different version, localization, bitness, and probably by some other things.

Does it work on a new empty add-in project?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 20 Dec, 2016 07:16:38 Top
David Potashinsky




Posts: 31
Joined: 2010-02-14
1. it works on thousands machines part of them localized (FR, JP, GE)
2. we deploy very specific DLL which is referenced by project

do you know about some machine specific dependences of Microsoft.Office.Interop.PowerPoint ?
Posted 20 Dec, 2016 07:43:56 Top
Andrei Smolin


Add-in Express team


Posts: 14115
Joined: 2006-05-11
David Potashinsky writes:
do you know about some machine specific dependences of Microsoft.Office.Interop.PowerPoint ?


No, I don't.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 20 Dec, 2016 08:25:40 Top