Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Method not found: 'Void RestSharp.RestClient.set_BaseUrl(System.String)'. in TWILIO

Tags:

c#

asp.net

twilio

I created a webpage to make a phone call using Twilio.

please refer the link

When I execute, it displays following error,

Method not found: 'Void RestSharp.RestClient.set_BaseUrl(System.String)'.

I used same codes on that link.

please help me.

Thank you.

like image 419
Premkumar Avatar asked Nov 02 '14 18:11

Premkumar


1 Answers

Twilio evangelist and maintainer of the C# library here.

RestSharp, which the Twilio library uses, just released a new version that introduced a breaking change. I'll be updating the C# library asap to fix this.

In the mean time you can work around this by first installing version 104.4 of RestSharp:

Install-Package RestSharp -Version 104.4

And then installing the Twilio helper library.

Hope that helps and sorry for the inconvenience.

like image 71
Devin Rader Avatar answered Dec 15 '22 01:12

Devin Rader