Outlook Addin invisible or inactive with error in debug log Dump of exception type 'System.IO.FileLoadException'

Outlook Addin invisible or inactive with error in debug log Dump of exception type 'System.IO.FileLoadException'

  • Comments 0

Sometimes the Outlook Addin, especially after a reinstall, becomes inactive or the Outlook Addin does not show up at all. The reason behind this is that the two below mentioned files have different build releases which causes the assemblies not to be loaded. After enabling the debug log file, the following error log can be seen:

Error: 23.04.2009 11:51:47 [1] Dump of exception type 'System.IO.FileLoadException'
Message: Could not load file or assembly 'Microsoft.Dynamics.NAV.OLSync.NAVSyncAddIn.resources, Version=5.0.26084.0, Culture=nb-NO, PublicKeyToken=4d69abd5d321bc2b' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Stack trace: at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalGetSatelliteAssembly(CultureInfo culture, Version version, Boolean throwOnFileNotFound)
at System.Resources.ResourceManager.GetSatelliteAssembly(CultureInfo lookForCulture)
at Microsoft.Office.Core.CommandBarsClass.get_Item(Object Index)
at Microsoft.Dynamics.NAV.OLSync.NAVSyncAddIn.Connect.OnStartupComplete(Array& custom)
Inner exception: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Dynamics.NAV.OLSync.NAVSyncAddIn.resources, Version=5.0.26084.0, Culture=nb-NO, PublicKeyToken=4d69abd5d321bc2b' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Microsoft.Dynamics.NAV.OLSync.NAVSyncAddIn.resources, Version=5.0.26084.0, Culture=nb-NO, PublicKeyToken=4d69abd5d321bc2b'

The following two files have different build releases:
- Microsoft.Dynamics.NAV.OLSync.NAVSyncAddIn.resources.dll 5.0.25791.0
- Microsoft.Dynamics.NAV.OLSync.NAVSyncAddIn .dll 5.0.26084.0

A hot fix exists for this issue and is described in KB article:
974581 The Microsoft Dynamics NAV Sync Add-in is not displayed or unavailable in Outlook and an error message is logged in the debug log: "Could not load file or assembly"
https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?scid=kb;EN-US;974581

Marco Mels
CSS EMEA

This posting is provided "AS IS" with no warranties, and confers no rights

 

Leave a Comment
  • Please add 7 and 8 and type the answer here:
  • Post