I want to try run my robot using studio in prod machine, but when i try to run it, there is an error appear, I dont add new activity, I can’t delete the packages from the prod machine, please help.
This is a UiPath Studio / Roslyn (Microsoft.CodeAnalysis) version mismatch issue. It usually happens when the project was built with a newer Studio or activities than the one installed on the PROD machine.
Working solutions (no package changes needed):
- Make sure DEV and PROD Studio versions are the same(most common fix).
- In Studio → Home → Settings → Design, disable “Enable Background Compilation”, restart Studio, then run.
- Ensure the project is Windows compatibility “targetFramework”: “Windows” in `project.json).
- Clear Studio cache:
C:\Users<user>\AppData\Local\UiPath
C:\Users<user>\AppData\Roaming\UiPath - If Studio still fails on PROD, publish from DEV and run via Orchestrator/Assistant (bypasses library compilation).
This is a Studio compilation cache issue, not a robot logic problem. Please Clearing cache or repairing dependencies resolves it safely.
You can close the UiPath
Run the cmd through cmd
Then reopen UiPath and open your project
Hope it resolve you issue
Thanks & Happy Automations
Had encountered the same error, and in my case it was caused by a recently added Microsoft Integrations / Office 365 (modern) Upload Files activity. Initially, I had some trouble configuring the Files input, as it requires an IResource type, and I made several attempts to get it right. Those repeated changes appear to have corrupted the activity, which then triggered the compilation error you mentioned. The issue was resolved by removing the Upload Files activity and adding it again
is that safe to clear the cache? i dont want to make any major change in prod machine, and also in roaming i didnt find cache folder, which folder i have to delete?
clearing the cache is safe , It does not change your project, packages, Orchestrator data, or robot configuration. This only forces UiPath to re-download local copies.
C:\Users<RobotUser>.nuget\packages — This is nuget cache
C:\Users<RobotUser>\AppData\Local\UiPath – This is local cache
Just delete the contents of this, dont delete the full folder.
Yes, it’s safe to clear the UiPath cache — it does not change projects, packages, or PROD configs.
Just close Studio and delete only the Cache and Assemblies folders inside:
C:\Users\<user>\AppData\Local\UiPath\
(Roaming\UiPath may not have a Cache folder — that’s normal; you can skip it.)
This is a standard UiPath-recommended fix and is low risk + reversible (cache is auto-recreated).
I have found the culprit! that is a Send SMTP Email activity, it’s working perfectly in my dev machine, but act weird in prod machine, if I disable or delete the send smtp email my flow can run from studio, I already try to remove and re-add activity but still the same problem, so my solution is make a new sequence and pass the send emai to that sequence, somehow that’s work for me
@Hendaryie_Tjoeng glad to know that your issue is resolved please mark as solution so this thread will be closed
Thanks & Happy Automations
Great, you caught it.
Seems issue is with the files input activities only…I had got it files upload ![]()
This is a Studio/package version mismatch issue (not because of new activities).
Try this:
- Make sure Studio version is the same on dev and prod.
- Open project → Manage Packages → Repair Dependencies.
- Clear cache and reopen Studio:
%localappdata%\UiPath.nuget
%userprofile%.nuget\packages
- Run again.
This error usually happens when compiler (.NET/Roslyn) versions don’t match between machines.
If solution help you please mark as solution.

