Hi there,
I have the exact same issue with version 2020.4.1
EDIT: If anybody goes thru this error, here’s a quick, dirty, fix: Open Windows Task Manager, look for “UiPath User Service” application, select and click “End Task” to kill that process.
After that, you’ll be able to run/debug your process…
UiRobot app connects to Orchestrator without issues.
However, the new, renamed, UiPath Assistant (former UiRobot Desktop) says it cannot connect to robot service.
UiPath Studio says the same, “Robot Error”, and guides you to connect to robot service, when it is actually working with UiRobot.exe
On Studio when trying to debug or run a file or project is says “Access Denied”
Following is the error log:
16:12:14.7641 => [ERROR] [UiPath.Studio.exe] [1] RemoteException wrapping System.ComponentModel.Win32Exception: Access is denied
at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited)
at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited)
at System.Diagnostics.Process.OpenProcessHandle(Int32 access)
at System.Diagnostics.Process.set_EnableRaisingEvents(Boolean value)
at UiPath.Service.UserHost.AttendedServiceProxy.RegisterClientProcess(Int32 clientPid)
at UiPath.Service.UserHost.StudioOperations.<Prepare>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Service.Core.Utils.TaskUtils.<WithShortWait>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---