Could not load file or assembly 'RestSharp, Version=105.2.3.0
I had the same issue, and I've finally found how to solve it.
The thing is: when you install Twilio
through NuGet, it installs RestSharp
as a dependency. BUT for some reason, the installed version of RestSharp
is Version=105.2.2.0
(instead of Version=105.2.3.0
, which Twilio
seems to be looking for at runtime).
So how do you solve that?
- Go to your installed NuGet packages
- Select
RestSharp
- Update it to the version 105.2.3.0 (with the blue-arrow icon)
Why the NuGet Twilio bundle installs RestSharp Version=105.2.2.0
and then at runtime looks for RestSharp Version=105.2.3.0
? No idea.
Remove all references form Restsharp.
Clean Solution (Clean solution option)
Add RestSharpSigned.105.2.3 (find by name RestSharpSigned).
it's work.
When you are adding a reference to RestSharp
, be aware of the version number (Version=105.2.3.0).
Also, your project's .net framework should be higher or equal then the referenced dll's.