robot
2024.10
true
Admin Guide
Last updated 21 oct. 2024

Résolution des problèmes .NET

.NET nécessaire lors de l'installation

Description

Upgrading the MSI installers fails with the following error: "You must install .NET Desktop Runtime to run this application."

Problème potentiel

The .NET runtime installed on your machine may be corrupted.

Solution

Uninstall the .NET runtime from your device and run the installer again.

Les activités ne trouvent pas le runtime .NET

Description

Workflows using specific activity packages fail when executed by 2023.4.0 and newer robots. The following errors are displayed:

  • « Afin de pouvoir exécuter cette application, vous devez installer les infrastructures manquantes pour .NET. »

  • « Afin de pouvoir exécuter cette application, vous devez installer .NET. »

Impacted activity packages

  • UiPath.Form.Activities version 2.0.x

  • UiPath.IntelligentOCR.Activities

  • UiPath.MobileAutomation.Activities

  • UiPath.Vision

  • UiPath.DocumentUnderstanding.Activities

  • Activités liées à OCR dans le package UiPath.UIAutomation.Activities

  • UiPath.OmniPage.Activities

  • UiPath.OCR.activities

Solution 1

Upgrade the activity packages of the problematic workflows to the latest versions.

Solution 2

Addd an Invoke Code activity at the start of the problematic workflow with the following snippet:

System.Environment.SetEnvironmentVariable("DOTNET_ROOT", System.AppContext.BaseDirectory)System.Environment.SetEnvironmentVariable("DOTNET_ROOT", System.AppContext.BaseDirectory)

Solution 3

Install the .NET Windows runtime or the missing .NET frameworks.

Échec de l’exécution des projets .NET 8

Description

L’exécution d’un processus Windows ou multiplate-forme créé à l’aide de Studio 2024.2, sur une version 2023.12 du Robot ou antérieure, échoue avec l’erreur suivante : « RemoteException : NU1202 : le package <package_name> <version> n’est pas compatible avec net6.0-windows7. 0 (.NETCoreApp,Version=v6.0). Le package <package_name> <version> prend en charge : net8.0-windows7.0 (.NETCoreApp,Version=v8.0). »

Problème potentiel

NuGet tries to resolve a package for .NET 6, whereas your automation was built using .NET 8. Such forward compatibility is not supported.

Solution

Mettez à niveau vos robots vers la version 2024.2

Cette page vous a-t-elle été utile ?

Obtenez l'aide dont vous avez besoin
Formation RPA - Cours d'automatisation
Forum de la communauté UiPath
Uipath Logo White
Confiance et sécurité
© 2005-2024 UiPath Tous droits réservés.