Access Denied For XAML File For Service Mode Robot

Resolution for the error " Access is denied" thrown, when Robots read XAML files in the extracted nuget file.

Issue Description: All Robots need access to read XAML files in the extracted nuget file but there is an error message : Access in denied.
The issue is reproducible after migrating the Robots to Service mode and configured a custom path for the nuget packages (on C drive).

Resolution: In uipath.config file (from path C:\Program Files\UiPath\Studio\uipath.config), change the following value to True, and re-test the scenario,


After performing the above change, the Robot service should be restarted and then reconnect again to the Orchestrator from the Assistant -> Preferences -> Orchestrator Settings.

If during the installation of an activity package the path gets corrupted, the installation does not complete. It is recommended to backup and then clear the content of the following local folders

  • %userprofile%\.nuget\packages and %userprofile%\AppData\Local\UiPath\.cache.


For reference, use Managing Activities Package and Nuget Packages Not accessible After Migration .