Could not load type 'System.Activities.DesignerContractExtensions' from assembly 'UiPath.IntelligentOCR, Version=6.27.2.0, Culture=neutral, PublicKeyToken=null'

Hi Experts,

I am working on a project and using Community Edition version Studio 26.0.182 STS


Above is the screenshot of the error I am getting.

The complete logs are as follows:

26.0.182-cloud.21893+Branch.release-s182.Sha.4fdc0e8a9b12a06e954b42f53b3f6e88e347ddbb.4fdc0e8a9b12a06e954b42f53b3f6e88e347ddbb

Could not load type ‘UiPath.IntelligentOCR.Activities.Utils.IocrDesignerContractAccessProvider’ from assembly ‘UiPath.IntelligentOCR, Version=6.27.2.0, Culture=neutral, PublicKeyToken=null’.

Error: System.Exception: Could not load type ‘UiPath.IntelligentOCR.Activities.Utils.IocrDesignerContractAccessProvider’ from assembly ‘UiPath.IntelligentOCR, Version=6.27.2.0, Culture=neutral, PublicKeyToken=null’.
at UiPath.IntelligentOCR.Activities.Utils.IocrContextExtensions.GetIocrAccessProvider(ActivityContext context)
at UiPath.IntelligentOCR.Activities.Design.DuAppActivityDesignerCommon.LoadAssetList()
at UiPath.IntelligentOCR.Activities.Design.DuAppActivityDesignerCommon.OnLoaded(Object s, RoutedEventArgs e)
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146233054

I have tried playing around the version of the dependancy but no success.

Current versions are:

Package Version
UiPath.IntelligentOCR.Activities 6.27.2
UiPath.DocumentUnderstanding.Activities 2.17.2
UiPath.DocumentUnderstanding.ML.Activities 1.36.2

Kindly help me with this topic @Rajnish_Pandey is my another id. please feel free to put your thoughts in the chat

hi @Rajnish_Pandey_S

This is a compatibility issue. You’re using UiPath Studio 26.x (STS) with UiPath.IntelligentOCR.Activities 6.27.2, which is not compatible. In Studio 26, some designer contracts used by older Intelligent OCR versions were removed/refactored, which causes this error.

Upgrade packages to versions compatible with Studio 26:

  • UiPath.IntelligentOCR.Activities → 6.30.x or higher
  • UiPath.DocumentUnderstanding.Activities → 2.19.x or higher
  • UiPath.DocumentUnderstanding.ML.Activities → 1.38.x or higher

After upgrading, restart Studio and reopen the project.

Alternative:
If you must stay on Intelligent OCR 6.27.2, downgrade Studio to 2024.10 LTS.

Mixing Studio 26 + Intelligent OCR 6.27.x will not work.

1 Like

@Rajnish_Pandey_S

When you are getting this error? For fresh project also you are getting this error or for existing projects only?

Try deleting NuGet cache from C:\Users\your user name will go here \.nuget\packages and retry

Hi Arjun,

Since this is a POC and I am using Community Edition, due to which while downloading the Studio I am only get 2026 version and the highest version that I have for the packages are
|Package| |Version|
|—|—|
|UiPath.IntelligentOCR.Activities |6.27.2|
|UiPath.DocumentUnderstanding.Activities |2.17.2|
|UiPath.DocumentUnderstanding.ML.Activities|1.36.2|

What can I do to resolve this

is there a way by which I can get 24 studio or maybe higher packages versions

@Rajnish_Pandey_S

With Community Edition, only Studio 26.x is available, and Intelligent OCR 6.27.2 is not compatible with it. To use this OCR version, Studio 2024.x (Enterprise) is required; otherwise, you must switch to DU activities compatible with Studio 26.

1 Like

Hi Ashok,

I am not getting this error for a fresh project but for existing project when I am using Data Extraction cope

Alright @Rajnish_Pandey_S so in that case this solution should work.

@Rajnish_Pandey_S

try deleting the folders starting with . in the project folder (Hidden as well) and before that take a backup and then reopen the project

cheers

Hi @Rajnish_Pandey_S

The error happens because the IntelligentOCR package version is not compatible with your Studio or other Document Understanding packages. Try downgrading or upgrading UiPath.IntelligentOCR.Activities to match the DU and ML package versions, reinstall the packages cleanly, and restart Studio. This usually fixes the missing type issue.