Getting "Could not load file or assembly 'RestSharp, Version=106.6.10.0, Culture=neutral, PublicKeyToken=598062e77f915f75'. The system cannot find the file specified." Error

I have created API Flow in Library and executed it is working Fine.
That Same Library when I Published to Test Automation Project and running I am getting the following Error.
Could not load file or assembly ‘RestSharp, Version=106.6.10.0, Culture=neutral, PublicKeyToken=598062e77f915f75’. The system cannot find the file specified.

I tried removing the UiPath.WebAPI.Activities (Version: 1.9.2) Package and Downlaoded it again but still no resolution. Can anyone help me on this.

Hi @Chakravarthi_Koppuravuri

Please check on this thread

HI @Chakravarthi_Koppuravuri

Check this out

This indicates that there is a version mismatch or missing assembly reference related to the RestSharp library in your UiPath project.

Try with these troubleshooting steps

Ensure that you are using the correct version of the RestSharp library in your project. The error message specifies “Version=106.6.10.0,” so make sure you have this exact version referenced.

Remove RestSharp and UiPath.WebAPI.Activities from your project, then reinstall them using the Package Manager to ensure a clean installation.

Ensure that the RestSharp library you are using is compatible with the .NET Framework version that your UiPath project is targeting.

Or

Sometimes, restarting UiPath Studio can help resolve reference issues.

Check this out as well

Cheers @Chakravarthi_Koppuravuri

I have done this but no luck.

Try with these steps and let us know @Chakravarthi_Koppuravuri

Removed RestSharp and UiPath.WebAPI.Activities from Test Automation Project and downloaded again with same RestSharp Package versions.
Now the Testcase Executing Successfully.
Thank you @Palaniyappan

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.