Could not load file or assembly 'UiPath.System.Activities, Version=,

Could not load file or assembly ‘UiPath.System.Activities, Version=, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified.

I am getting the following error. I was completing a practice from Data manipulation in the RPA developers foundation.

I have in dependencies the activities, and also if I go to manage packages I have those. I already tried uninstalling and installing and rebooting my laptop. But still getting the error while debugging

Most times it happens when you download package from Orchestrator.
The UiPath.System.Activities is then changed to UiPath.System.Activities.Runtime.
Before publishing the package, go to project settings, set “Separate Runtime Dependencies” to No and download package again. It will work

That wouldnt cause this error, the runtime version just wont have the activity cards so you wont be able to work with the activities on a workflow.

I have seen this error when running a different UiPath studio version to the UiPath executor. If you are running the debugging directly in studio though that wouldnt make sense.

Perhaps you can share your UiPath studio version?