SAP Knowledge Base Article - Public

3321073 - Error "Could not load file or assembly 'pluginwrapper, Version=1.3.3.0, Culture=neutral, PublicKeyToken=8ede04ace7fbcb32' or one of its dependencies"

Symptom

An exception occurs when Analysis for Office tries to connect to the backend system.

In the traces of AO that can be recorded by following the instructions of SAP Note 2129389, the folowing entries can be found:
----------------------------
Caught exception while initializing RFC parameters: System.IO.FileNotFoundException: Could not load file or assembly 'pluginwrapper, Version=1.3.3.0, Culture=neutral, PublicKeyToken=8ede04ace7fbcb32' or one of its dependencies. The system cannot find the file specified.
File name: 'pluginwrapper, Version=1.3.3.0, Culture=neutral, PublicKeyToken=8ede04ace7fbcb32'
at Com.Sap.Cof.ConnectionService.BusinessWarehouse.BwConnectionManager.InitializeClientPassportHandler()
at Com.Sap.Cof.ConnectionService.BusinessWarehouse.BwConnection.InitNcoParameters(IAuthentication authentication)
...
Exception while connecting to BW with user XYZ: Com.Sap.Cof.Interfaces.Connection.ConnectionException: Could not load file or assembly 'pluginwrapper, Version=1.3.3.0, Culture=neutral, PublicKeyToken=8ede04ace7fbcb32' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'pluginwrapper, Version=1.3.3.0, Culture=neutral, PublicKeyToken=8ede04ace7fbcb32' or one of its dependencies. The system cannot find the file specified.
...
General .NET Exception [3329-c78f-d1]:
Could not load file or assembly 'pluginwrapper, Version=1.3.3.0, Culture=neutral, PublicKeyToken=8ede04ace7fbcb32' or one of its dependencies. The system cannot find the file specified.
----------------------------

Environment

SAP Analysis for Microsoft Office

Cause

The issue might be related to the pluginwrapper.dll installed in global assembly cache (GAC).

Resolution

The pluginwrapper.dll is used by Analysis Office to enable recording of an E2E trace using the external program "SAPClientPlugin" (see referenced SAP Note 1608231).

Until AO client version 2.8 SP21, the absense of this DLL results in a crash. A successful loading of this DLL is a must for the tool to be used. From AO client version 2.8 SP22 on, the presence of 'pluginwrapper.dll' is optional and the AO tool does not crash anymore in its absense (see SAP Note 3458188).

For AO client versions lower than 2.8 SP22, the file "pluginwrapper.dll" must be loaded to the global assembly cache (GAC). The steps:

  1. Make sure the latest version of Analysis Office is installed (refer to SAP Note 1518359). The latest version can be installed by following the instructions in section #2 of this Wiki page;
  2. Make sure to have the Windows tool gacutil installed. This tool is part of the Microsoft Windows SDK for your Windows version:
  3. Win 10 - https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk
  4. Open the Command Prompt as Administrator;
  5. Go to the installation folder of the Analysis Office plugin, where the pluginwrapper.dll of AO is located. The default folder is %PROGRAMFILES%\SAP BusinessObjects\Office AddIn\Plugins\AnalysisOffice);
  6. Install this pluginwrapper.dll with the command below:
    gacutil /i pluginwrapper.dll
  7. Start AO again and retest the scenario.

See Also

  • SAP Note - 2694979 - "Mixed mode assembly" error in Analysis for Office
  • SAP Note - 3458188 - Removed the mandatory dependency on pluginwrapper.dll (E2E-Tracing) 
  • SAP Note - 1608231 - E2E Trace Client Integration (Plugin Library) 

Keywords

3329-c78f-d1, pluginwrapper, 8ede04ace7fbcb32 , KBA , BI-RA-AO-XLA , Excel Addin , Problem

Product

SAP Analysis for Microsoft Office all versions