Access Denied to launch an application when running UIPath

Hi,

I am automating steps on Caseware Idea, but it fails to launch the application and throws the following error even though I am running UI Path as administrator:

20.4.0-beta.1788

Access is denied

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

Your assistance will be highly appreciated.

Regards,
Mashudu

6 Likes

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

RobotServiceError1

UiRobotConnected

On Studio when trying to debug or run a file or project is says “Access Denied”

AccessDeniedError

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 ---
10 Likes

this works for me … Thank you very much…

if I disable this, i have a new problem.

open browser activity doesn’t work. Error cannot communicate with Chrome. As a workaround i must have a browser opened in order for the UiStudio file to run.

My process requires to open a new browser without any existing browser in open. It conflicts with an app.

1 Like

Can you please check if you are having Chrome Extension for the UIPath properly configured?
This may lead to similar kinds of Error.

This work for me. Thank you.

But this is a temporary solution. I wonder there is any solution for this issue stop happening anymore.

Thank all,

BrianD

I have created a workflow in uipath and while running I am getting access is denied error as below.

kindly help me on this.

There is some further insight into this error.

Blockquote 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.

User Mode VS Service Mode - Help / Orchestrator - UiPath Community Forum

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.