Present Validation Station (): Method not found: 'Microsoft.Extensions.DependencyInjection.IServiceCollection

Hey Guys,

Getting this error while running Present Validation Station () in Intelligent OCR activities,

*'Microsoft.Extensions.DependencyInjection.IServiceCollection *
Present Validation Station (): Method not found: ‘Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.LoggingServiceCollectionExtensions.AddLogging(Microsoft.Extensions.DependencyInjection.IServiceCollection, System.Action`1<Microsoft.Extensions.Logging.ILoggingBuilder>)’.

Please help me out.

Thanks,
Amanyu

Welcome to forum @Amanyu_Roy ,
You can try updating or reinstalling the UiPath packages in your project.
If you’ve made changes to dependencies, clean and rebuild your project to ensure that old or cached versions of libraries are not causing conflicts.
regards,

1 Like

Hello @Amanyu_Roy

The error message you’re encountering in UiPath suggests that there is a mismatch or issue with the version of the dependencies used in your project. Specifically, it appears to be related to Microsoft.Extensions.DependencyInjection, which is a common library used for dependency injection in .NET applications.

  1. Make sure that you are using the correct version of UiPath’s Intelligent OCR activities that is compatible with the version of Microsoft.Extensions.DependencyInjection used in your project.
  2. If you find that your dependencies are outdated, try updating them to the latest versions that are compatible with each other and with UiPath
  3. After updating or modifying your dependencies, clean your project solution and rebuild it to ensure that all the packages and references are properly resolved.
1 Like

Hi

The Microsoft.Extensions.DependencyInjection.Logging NuGet package and the UiPath.IntelligentOCR.Activities NuGet package.

To resolve this conflict, you can try upgrading the UiPath.IntelligentOCR.Activities NuGet package to the latest version.

Also Make sure that u have this namespace imported
Microsoft.Extensions

Cheers @Amanyu_Roy

1 Like

How to clean and rebuild the project again please.

how to ensure the namespace “Microsoft.Extensions” imported?