I’m facing a rather annoying issue when running my process, whether from UiPath Studio or Orchestrator.
I intermittently get the following error:
Use Browser Chrome: Error: cannot access UI Automation DLLs
[C:\Users\rpa.nuget\packages\UiPath\25.10.160.17874\build\UiPath]
In case you have an antivirus running, try either whitelisting the folder or temporarily disabling the antivirus.
What’s strange is that the issue disappears after launching the process 2, 3, or sometimes 4 times. Once it runs successfully, it keeps working fine as long as I stay on the same process and remain logged into the machine.
However:
As soon as I log out of the machine, the issue comes back.
If I run another process, I encounter the exact same problem, which again disappears only after launching it several times.
Has anyone experienced a similar behavior?
Could this be related to antivirus, permissions, DLL loading, or user session initialization?
I’ve seen this before and it’s usually antivirus related. On the first run, the AV scans or locks the UIAutomation DLLs, so the process fails. After a few retries, the DLLs are already loaded in the user session and everything works until you log out. Once you log out, the same thing happens again.
Whitelisting the UiPath installation folder and the NuGet cache (C:\Users\rpa.nuget\packages) usually fixes it. Also make sure the Chrome extension is installed for the robot user and Studio/Robot versions match.
Hi @rpa92
Try to delete the local .nuget folder so UiPath restores packages cleanly.
Reinstall the Chrome extension, Ensure the Robot service starts properly in a fresh login session.