Scenario: UiRobot is throwing below error for KILL activity when run on a server. Service account we are using is having Admin access.
System.AggregateException: Encountered errors while trying to kill a process —> System.ComponentModel.Win32Exception: Access is denied at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited)
Steps to reproduce:
Current Behavior:
Expected Behavior:
Studio/Robot/Orchestrator Version:
Last stable behavior:
Last stable version:
OS Version:
Others if Relevant: (workflow, logs, .net version, service pack, etc):
It is on server? Right? So that process might be start from some other user session so it is running in the background. if you are having already an admin access as you have mentioned that either try to kill that process forcefully or i have shared many months back one example on the forum to kill excle process user specific too… check that sample and try that…
I’m developing in the server and sharing that Windows instance with a few people. It works for me, apart from a system.aggregate exception which I deal with using try catch.
While working on server, there can be many users working simultaneously
It is okay not to have admin previlleged For Killing any process on server if thats process is running under your user. You can do anything with your own process.
But if you want to kill a process which is currently running for other user for that you need admin rights