Studio Error " Newtonsoft.Json.JsonSerializationException"

Error fix for the exception obtained while creating process " RemoteException wrapping Newtonsoft.Json.JsonSerializationException: Cannot create and populate list type System.Collections.Generic.IReadOnlyCollection`1 " .

Issue Description: After Studio installation, when it is attempted to connect to the Orchestrator the following error is obtained - "RemoteException wrapping Newtonsoft.Json.JsonSerializationException: Cannot create and populate list type System.Collections.Generic.IReadOnlyCollection`1".

image.png


Resolution: Perform the below steps

  1. Open path “C:\Windows\Microsoft.NET\assembly\GAC_MSIL”
  2. Check if there are any folders referencing to the NewtonSoft dlls
  3. If there are, then delete the respective folders
  4. Uninstall the current setup of UiPath and delete the UiPath folders from below location
    • Program Files (*86)
    • %localappdata%
    • %appdata%
  5. Once done, reinstall the UiPath Studio / Robot and run the process.