robot
2024.10
true
UiPath logo, featuring letters U and I in white

Robot admin guide

上次更新日期 2024年12月18日

.NET 故障排除

安装过程中需要 .NET

描述

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

潜在问题

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

解决方案

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

活动找不到 .NET Runtime

描述

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

  • “要运行此应用程序,您必须安装缺少的 .NET 框架。”

  • “要运行此应用程序,您必须安装 .NET。”

Impacted activity packages

  • UiPath.Form.Activities 版本 2.0.x

  • UiPath.Intelligent OCR.Activities

  • UiPath.MobileAutomation.Activities

  • UiPath.Vision

  • UiPath.DocumentUnderstanding.Activities

  • UiPath.UIAutomation.Activities 包中与 OCR 相关的活动

  • UiPath.OmniPage.Activities

  • UiPath.OCR.activities

解决方案 1

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

解决方案 2

Add 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)

解决方案 3

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

.NET 8 项目运行失败

描述

在 2023.12 或更低版本的 Robot 上执行使用 Studio 2024.2 构建的 Windows 或跨平台流程时将失败,并显示以下错误:“远程异常:NU1202:包 <package_name> <version> 与 net6.0-windows7.0(.NET CoreApp,版本 = v6.0)不兼容。包 <package_name> <version> 支持:net8.0-windows7.0(.NET CoreApp,版本 = v8.0)。”

潜在问题

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

解决方案

Upgrade your Robots to version 2024.2.

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo White
信任与安全
© 2005-2024 UiPath。保留所有权利。