KB PS Deployment DLL File Used by other Process - rpapub/WatchfulAnvil GitHub Wiki

Problem: Access Denied During DLL Deployment to UiPath Studio

Symptoms

  • Cannot copy DLL to C:\Program Files\UiPath\Studio\Rules\net8.0\
  • Error: Access to the path... is denied

This screenshot shows the error 'Access to the path... is denied'

Root Cause

PowerShell session lacks administrative privileges required to write to Program Files.

Solution

✅ Recommended Fix

  1. Open PowerShell as Administrator
    • Right-click PowerShell > "Run as administrator"
  2. Retry Copy Command
    • Run the same Copy-Item or cp after elevation

🔄 Alternative Workarounds

  • Temporarily Change Folder Permissions (not recommended for production)
  • Use Installer Script that runs with elevated permissions

References