Unable to install System.text.json package

I get this error when I am installing system.text.json package!

Cannot load assembly: C:\Users\nuget\packages\system.text.json/4.7.0\lib/net461/System.Text.Json.dll : System.TypeLoadException: Method ‘DisposeAsync’ in type ‘System.Text.Json.Utf8JsonWriter’ from assembly ‘System.Text.Json, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ does not have an implementation.
at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainer.AddAssemblyInternal(Assembly assembly, String path)
at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainer.<>c__DisplayClass9_0.b__0(Tuple`2 range)

can anybody help?

Hello,

I’ve got the same issue. It seems to be a bug in UiPath. I solved that issue by using the Package Newtonsoft.Json.

Kind regards,
Tino

1 Like