System.TypeLoadException: Method 'DisposeAsync' in type 'System.Text.Json.Utf8JsonWriter' from assembly 'System.Text.Json

Hi,

I’m using Start Job activity, but I keep getting this error even though I’ve downgraded the version. This does not happen in my other project.
RemoteException wrapping System.TypeLoadException: Method ‘DisposeAsync’ in type ‘System.Text.Json.Utf8JsonWriter’ from assembly ‘System.Text.Json,
Version=4.0.1.2,
Culture=neutral,
PublicKeyToken=cc7b13ffcd2ddd51’ does not have an implementation.
at UiPath.Core.Activities.TaskExtensions.ThrowIfNeeded(Task task,
Boolean suppresThrowException)
at UiPath.Core.Activities.Orchestrator.BaseOrchestratorClientActivity.ThrowIfNeeded(AsyncCodeActivityContext ctx,
Task task,
Boolean suppresThrowException)
at UiPath.Core.Activities.Orchestrator.BaseOrchestratorClientActivity.EndExecute(AsyncCodeActivityContext context,
IAsyncResult result)
at UiPath.Core.Activities.StartJob.EndExecute(AsyncCodeActivityContext context,
IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context,
IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)

This is in the Properties Panel:

This is the list of packages:


image

This is my Studio version:
image

Regards,
Azeem

Hi @azeem_rosli

I was able to find a bit of information. The short answer is that there is a version conflict somewhere among the dependencies.

The way to test this would be to start with the minimum amount of dependencies (preferably just the latest System), which should work, and then add your other dependencies one by one and test the workflow of each type. One of those added dependencies will cause this error.

Additionally, I’d suggest upgrading your Studio to the latest patch of your current version, which would be 2022.4.8 (it is possible that this issue was fixed in the meantime in Studio by allowing it to resolve this version conflict on its own).

Hi @loginerror,

Thanks for your suggestion. You’re right, there’s version conflict & I’ve tested installing them one by one in a new project. It’s working! Thanks.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.