When I create a simple program in ‘Windows’ mode, to display a message box saying ‘Hello’ and run it on a machine using Orchetrator, I get below error msg -
Package Test.Automation.Hello 1.0.121806659 is not compatible with net5.0-windows7.0 (.NETCoreApp,Version=v5.0). Package Test.Automation.Hello 1.0.121806659 supports: net6.0-windows7.0 (.NETCoreApp,Version=v6.0)
When I create same program in ‘Windows Legacy’ mode it runs fine.
It felt to me that issue is with .net runtimes, which I installed, but I still get this error.
Failed to install package ‘Test.Automation.Hello.1.0.121806659’
RemoteException wrapping System.Exception: Failed to install package ‘Test.Automation.Hello.1.0.121806659’ —> RemoteException wrapping System.Exception: NU1202: Package Test.Automation.Hello 1.0.121806659 is not compatible with net5.0-windows7.0 (.NETCoreApp,Version=v5.0). Package Test.Automation.Hello 1.0.121806659 supports: net6.0-windows7.0 (.NETCoreApp,Version=v6.0)
NU1202: Package Test.Automation.Hello 1.0.121806659 is not compatible with net5.0-windows7.0 (.NETCoreApp,Version=v5.0) / win10-x64. Package Test.Automation.Hello 1.0.121806659 supports: net6.0-windows7.0 (.NETCoreApp,Version=v6.0)
--- End of inner exception stack trace ---
at UiPath.Service.Core.ProjectInstaller.InstallCore(InstallProjectCommand installCommand)
at UiPath.Service.Core.NetWindowsProjectInstaller.InstallCore(InstallProjectCommand installCommand)
at UiPath.Service.Core.Utils.RobotTelemetryExtensions.WithTelemetry[TResult](IRobotTelemetryClient container, Func1 internalFunc, RobotTelemetryOperationBase telemetryOperation, Action1 telemetryArgsFunc)
at UiPath.Service.Core.ProjectInstaller.InstallWithTelemetry(InstallProjectCommand installCommand)
at UiPath.Service.Core.ProjectInstaller.<>c__DisplayClass5_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at UiPath.Service.Core.ProjectInstaller.Install(InstallProjectCommand installCommand)
at UiPath.Service.Core.PackageService.InstallProcess(PublishedProcess process, ImpersonableIdentity identity, IRobot robot, CancellationToken ct)
at UiPath.Service.Job.InstallPackage(ImpersonableIdentity identity, CancellationToken ct)
at UiPath.Service.Job.PrepareForExecution(ImpersonableIdentity identity, CancellationToken ct)
at UiPath.Service.Job.UiPath.Service.Core.IExecutorEvents.ExecutorAvailable(ImpersonableIdentity identity, CancellationToken ct)
at UiPath.Service.Core.ExecutorService.Available(AvailableMessage availableMessage)
at UiPath.CoreIpc.Server.<>c__DisplayClass7_3.<<-ctor>g__InvokeMethod|6>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.Server.<>c__DisplayClass7_1.<<-ctor>g__HandleRequest|3>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.Server.<>c__DisplayClass7_2.<<-ctor>b__5>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List1 cancellationTokens, Func2 func, String message, Func`2 exceptionHandler)
My project was created using the latest version of Studio that uses Windows (not Legacy), so there was no migration that happened. All packages are up to date. I still have this error.