Could not load file or assembly/ System.IO.FileNotFoundException

Dear All please help!!
I am getting below error:

Message: Could not load file or assembly ‘UiPath.Robot.Activities.Api, Version=, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.

Exception Type: System.IO.FileNotFoundException

Please suggest a resolution.


Could you please tell more details about the issue. May I know when you getting this error ?

I made a reuseable component (i.e. a Library) to fetch data from salesfoce using Salesforce API key.
While running the code, I am getting the above error.

I believe you are using different version of reusable component and salesforce activities in the project you want to use this component in. Please check the version and upgrade/downgrade it to the version which was used to built the reusable component.

Other Solution is(if you are not aware of the version):
just delete the salesforce activities from your reusable component and then drag and drop them again. It will work.

Thank you so much… For now I handled the exception and logged the same and proceeded with the rest steps. Results are fine.