CANetPluginInvoker - Could not load file or assembly Newtonsoft.Json
118
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 15:57 PM
Symptom
CANetPluginInvoker.exe Plugin failed with the following error in Debug ThirdParty logs:
11/02/2021 09:35:17.260 | Info -> BaseAction :: SetErrorMessage -> Received exception: System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' at CyberArk.Extensions.PTA.HttpParser.ParseResponse(String response) at CyberArk.Extensions.PTA.BaseAction.HandleResponse(Response response, String& errorMessage, Int32& RC) at CyberArk.Extensions.PTA.BaseAction.ConnectToServer(IRequest httpMethod, String endpoint, SecureString currentPassword, String& errorMessage)
Environment
11.5;11.7;12.0;12.2;12.6;13.2;14.0 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM) CPM Plugin with CANetPluginInvoker. This is identied by ExeName=CANetPluginInvoker.exe in Platform Policy settings.
Cause
Newtonsoft.Json.dll version mismatched.
Resolution
- Ensure Newtonsoft.Json.dll version in {{cpm_install_dir}}\bin folder is 6.0.2.16931.
- Restart CPM service.
- Test the Plugin again.