CANetPluginInvoker - Could not load file or assembly Newtonsoft.Json

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


  1. Ensure Newtonsoft.Json.dll version in {{cpm_install_dir}}\bin folder is 6.0.2.16931.
  2. Restart CPM service.
  3. Test the Plugin again.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001343CAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail