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 is denied".
The issue is reproducible after migrating the Robots to Service mode and configuring 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,

image.png


After performing the above change, the Robot service should be restarted and then reconnected 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.