SAP Knowledge Base Article - Public

2694979 - "Mixed mode assembly" error in Analysis for Office

Symptom

The following error occurs when using Analysis for Office:

"Mixed mode assembly is built against version 'v2.x.xxxxx' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information"

Environment

SAP BusinessObjects Analysis, edition for Microsoft Office

Cause

The issue might be related to the pluginwrapper.dll.

AO 2.x is based on Microsoft .NET 4.0.
Some other tools are based on Microsoft .NET 2.0.
AO installs the pluginwrapper to a local installation folder.
Some other tools install their pluginwrapper to the global assembly cache (GAC).
When loading an assembly, .NET checks the GAC first.
If the assembly is found in the GAC, it is loaded. It is not possible to force .NET to load a local file instead.

The error message described in this note occurs because when AO wants to load the pluginwrapper, .NET provides the pluginwrapper version from the GAC, even with a different .NET version. But when loading a .NET 2.0 assembly from a .NET 4.0 assembly, we run into this "mixed mode assembly" exception.

Resolution

Please check the resolution in KBA 3451807.

See Also

  • SAP Note - 3451807 - Precalculation error: "Could not load file or assembly 'pluginwrapper.dll' or one of its dependencies"
  • SAP Note - 3458188 - Removed the mandatory dependency on pluginwrapper.dll (E2E-Tracing)
  • SAP Note - 1608231 - E2E Trace Client Integration (Plugin Library)

Keywords

mixed, assembly, mode, gac, assemblies, error , KBA , BI-RA-AO-XLA , Excel Addin , Problem

Product

SAP Analysis for Microsoft Office all versions