Compilation failed: Access to .local\install*.dll is denied – Unable to run UiPath project

Hi Teams,

I’m facing a compilation error in UiPath Studio and I’m not able to run any process in this project. I’d really appreciate your help in understanding the root cause and the best way to fix it.

Environment

UiPath Studio version: [e.g. 2022.10.x / 2023.x –]

License type: [Community ]

OS: [Windows 10 / ]

Project type: [REFramework / Process / Library]

Project path:

C:\Users\RPAUser\Documents\UiPath\New folder\RR Generating Batch Invoices in SAP REFramework - Copy\

Error message

When I click Run / Debug on the project, I immediately get this popup:

Error: Compilation failed or was cancelled.

In the logs / detailed message I see:

Unexpected error has occurred during the library compilation process:

Access to the path ‘C:\Users\RPAUser\Documents\UiPath\New folder\RR Generating Batch Invoices in SAP REFramework - Copy.local\install\RR Generating Batch Invoices in SAP REFramework_Remove_Queue_Items.dll’ is denied.

Because of this, the workflow never starts – it fails during compilation.

Screenshot for that

Questions for the community

What can cause a persistent “Access to the path ‘.local\install*.dll’ is denied” error even after deleting the .local folder and restarting Studio?

Is this more likely to be:

a permission issue,

an antivirus / security tool locking the file,

a problem with using REFramework as a Library,

or something else inside UiPath (e.g. a bug in the compilation process)?

How can I reliably check which process is locking this specific DLL file?

Are there any recommended tools or logs from UiPath to see file locks clearly?

Is there any known limitation or best practice about where UiPath projects should be stored?

For example, is it safer to always use a simple path like C:\UiPathProjects\ instead of C:\Users...\Documents\UiPath\New folder...?

Could something inside the project (e.g., a particular XAML or library reference) cause this library to fail to compile and produce an “Access denied” message, or is it almost always OS/permissions related?

If you have faced this exact error before, what finally solved it for you?

Any specific configuration changes, antivirus exclusions, or folder permission settings would be very helpful.

Hi @Vikas_b_Sajjan
Might be due to a background process such as Windows, antivirus, or OneDrive is locking the DLL inside the project’s .local\install folder, so UiPath cannot compile it.

Try to Close Studio, kill UiPath and dotnet processes, delete the .local folder, move the project to a clean path like C:\UiPathProjects, and add antivirus or OneDrive exclusion for the project folder.

If helpful, mark as solution. Happy automation with UiPath

This information is inconsistent,

If you are on a Community Licence you cannot be using a Studio version of 2022 or 2023, or use it for a robot for entering data into SAP.

I think you have been abit sloppy there and not filled in those details accurately as you indicate its a REFramework and process and library and it cannot be all 3

Can you take abit more care and do them correctly?

Hi @Jon_Smith,

UiPath Studio version: [ 2024.x –]

License type: [[Community] ]

OS: [Windows 11 ]

Project type: [REFramework]

Project path:

C:\Users\RPAUser\Documents\UiPath\New folder\RR Generating Batch Invoices in SAP REFramework - Copy
[/quote]

Ok, if you are sure these are accurate now then you have a more serious issue. You cannot do this with a Community Licence and I am not sure how you have Studio 2024 with that licence as it should have automatically updated.