Error: Could not load file or assembly 'UiPath.UIAutomationNext.Activities' in Assistant, but works fine in Studio

Hi everyone, I need some help.

I have a UiPath project that runs perfectly fine in Studio, but when I publish it to Orchestrator and try to run it through UiPath Assistant, I get the following error:

Could not load file or assembly 'UiPath.UIAutomationNext.Activities, Version=24.10.10.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

However, in my project.json, there is no dependency on UiPath.UIAutomationNext.Activities.
Here are my current dependencies:

  • UiPath.Excel.Activities = 2.24.4
  • UiPath.Form.Activities = 25.4.3
  • UiPath.PDF.Activities = 3.24.0
  • UiPath.System.Activities = 25.8.0
  • UiPath.Testing.Activities = 24.10.3
  • UiPath.UIAutomation.Activities = 24.10.10
  • UiPath.WebAPI.Activities = 2.0.0-preview
  • UiPathTeam.Barcode = 1.0.9

I already tried publishing the project again, but the error still occurs in Assistant.

Thanks in advance :folded_hands:

It may be that you are having the issue because of the dependency UiPathTeam.Barcode.1.0.9

Based on UiPathTeam.Barcode/Barcode/project.json at master · qbrandon/UiPathTeam.Barcode · GitHub I see it using UiPath.UIAutomation.Activities.18.4.2 which is not supported.

Try to remove from your project the UiPathTeam.Barcode.1.0.9, test it in Studio, publish it from Studio to Orchestrator, and retry to run it.

Make sure that in your robot you are using as official feed this URL https://pkgs.dev.azure.com/uipath/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json in the Nuget.Config file in the Robot installation folder.

Note:

UiPathTeam.Barcode.1.0.9 is using UiPath.UIAutomation.Activities.21.10.5, which is also a not supported version of the package.

You can manually place the package from studio machine to assistant’s machine and check if it works

Hi, Thank you for the answer. It is working now, I replace the UiPath.Teams.Barcode using the ZXing Library.

1 Like

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