The type initializer for "UiPath.SAP.BAPI.ConnectionService.SapConnectionService.SapConnectionService" threw an exception.
Error: The type initializer for 'UiPath.SAP.BAPI.ConnectionService.SapConnectionService.SapConnectionService' threw an exception.
Inner Exception:
System Exception:System.IO.FileNotFoundException: Could not load file or assembly 'sapnco, Version=3.0.0.42, Culture=neutral, PublicKeyToken=50436dca5c7f7d23' or one of its dependencies. The system cannot find the file specified. File name: 'sapnco, Version=3.0.0.42, Culture=neutral, PublicKeyToken=50436dca5c7f7d23' at UiPath.SAP.BAPI.ConnectionService.SapConnectionService.SapConnectionService..cctor()
Root Cause: Missing Installation Prerequisites.
Resolution:
- Validate the inner exception
- The DLL files were manually copied from the Windows folder to the package folder but they were not the version indicated in the message
- To rule out the possibility of the difference in version causing it, install the 32bit (x86) .NET 4.0. Variant of the SAP Connector for Microsoft .NET 3.0 (NCo 3.0) since its a prerequisite for this activity pack as per documentation.