The type 'System.Object' is defined in an assembly that is not referenced

Build Upload File : Compilation failures occurred:

The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.

Complete results are contained in the Data property of this exception. Please correct the errors in the source and retry the Load.

I got this error in my Project. it is a Legacy C# project
the process was working until it got to an invoke workflow activity. Then i got this error
Any help will be appreciated

@Afolayanayooluwa,

Go to the workflow where you are getting this error and import the namespace

System.Object

@Afolayanayooluwa

i got some info related to this from LLM, try this
Go to that targeted workflow and Open imports section besides of Arguments section and check is there any netstandard namespace imported if any found with that name just delete it and save and check error still exists

If you’re still seeing errors after removing namespaces, go to:

  • project.json
  • Remove any mention of netstandard, System.Runtime, or custom dependencies.

and as similar you can go through below thread may be you can get an any idea to resolve this,

Happy automation!

This is not available in UiPath

@Afolayanayooluwa

Can you show a screenshot of the process or where the error is occuring exactly in debug mode please

Cheers