Search code examples
c#outlookoutlook-addinoutlook-redemption

Interop Redemption library crashing on release but not on debug version outlook add-in


I'm using Interop.Redemption 5.7 in my outlook add-in (plug-in) but when i build the app in release and start the outlook plugin i get stack trace for some reason and when i build the same app for debug no any error add-in works fine.

This is only on Win7 FR with office on FR language. When i use EN versions everything works fine.

Stack trace:

Impossible de charger le fichier ou l'assembly 'Interop.Redemption, Version=5.7.0.0, Culture=neutral, PublicKeyToken=----' ou une de ses dépendances.

Google translate:

Could not load file or assembly 'Interop.Redemption, Version = 5.7.0.0, Culture = neutral, PublicKeyToken = -----' or one of its dependencies.

What can be different between debug and release build?


Solution

  • The trick was the dll was not deployed to the target directory for some reason... I didn't add them from COM component, just added in the project and reference from there.