Failed to load file or assembly "RestSharp, Version = 105.2.3.0

I am having trouble understanding this problem.

I have a local project with Twilio added via Nuget . But when I export the project to my IIS server, it cannot use Twilio, even if I added all the DLL files for Twilio.

I think I am missing something with the inclusion or something ..

This is the error I get:

Exception information: 
    Exception type: FileNotFoundException 
    Exception message: Could not load file or assembly 'RestSharp, Version=105.2.3.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
   at Twilio.TwilioClient..ctor(String accountSid, String authToken, String accountResourceSid, String apiVersion, String baseUrl)
   at Twilio.TwilioRestClient..ctor(String accountSid, String authToken, String accountResourceSid) in C:\projects\twilio-csharp\src\Twilio.Api\Core.cs:line 182
   at Modules.Messaging.TwilioClient.Send()
+4
source share
3 answers

When you add a link to RestSharp, know the version number (Version = 105.2.3.0).

In addition, your .net framework project must be higher or equal than the referenced DLL.

+5

, , .

, Twilio NuGet RestSharp . - RestSharp Version=105.2.2.0 ( Version=105.2.3.0, Twilio, , ).

, ?

  • NuGet.
  • RestSharp
  • 105.2.3.0 ( )

NuGet Twilio RestSharp Version=105.2.2.0, RestSharp Version=105.2.3.0? .

+5

The error messages indicate that you do not have a link RestSharp. Take a look and include it as a reference. Be sure to select the link and select the option "Copy local" in the properties window in Visual Studio

0
source

All Articles