Persistent "Could not load file or assembly 'UiPath.OCR.Core'" Error

I am experiencing a persistent “Could not load file or assembly ‘UiPath.OCR.Core, Version=3.24.2.0’” error in my project, which is blocking all development.

The error occurs in a workflow that uses the “Extract PDF Text with OCR” activity with the “UiPath Document OCR” engine.

We have already tried the following troubleshooting steps without success:

  1. Updating UiPath.OCR.Activities and UiPath.PDF.Activities to the latest stable versions.
  2. Manually clearing the NuGet package cache by deleting the package folders from %userprofile%.nuget\packages.
  3. Replacing the deprecated “ReadPDFWithOCR” activity with the modern “ExtractPDFText” activity.
  4. Attempting to remove a hardcoded assembly reference to “UiPath.OCR.Core” from the Main.xaml file.

Despite these efforts, the error persists, indicating a deep-seated dependency conflict within the project or environment.

Project Details:

  • Project Name: scholarship_automation
  • Target Framework: Windows
  • UiPath Studio Version: 26.0.186.0

Hi @Daniyal_Ahmed56

Please give a try on the below

Create a new UiPath project and then copy your existing XAML files into it. This gives you a clean dependency set and removes all the broken package conflicts.

Happy Automation!!

UiPath.IntelligentOCR.Activities and UiPath.DocumentUnderstanding.Activities should not be used together in the same project.