The type or namespace name 'Activities' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

Hi,

I have an “Invoke Code” activity in my automation, I write C# codes in it to get a DataTable from MS sql server, it works perfectly fine in UiPath Stutio on my own laptop, but when I publish the package to Orchestrator and deploy it on another machine, the robot does not work, the log says “No compiled code to run\nerror CS0234: The type or namespace name ‘Activities’ does not exist in the namespace ‘Microsoft’ (are you missing an assembly reference?)”.

Could anyone please help? Thanks!

I solved the problem myself, just go to studio --> Manage Package, add the package “Microsoft.Activities.Extensions”, then re-deploy the solution package to testing machine.

1 Like