[英]Getting error: Method not found: 'Void RestSharp.RestClient.set_BaseUrl(System.String)'. in Twilio-CSharp
I am using MVC5 Application And implement twilio rest api for send sms but I am getting error on : 我正在使用MVC5应用程序并实现twilio rest api来发送短信,但出现错误:
var twilio = new TwilioRestClient(AccountSid, AuthToken);
My restsharp dll version is 105.0.1 and also I have older 104.4.0 and I was try twilio latest version and older both but seems getting error. 我的restsharp dll版本是105.0.1,并且我使用的是较旧的104.4.0,我尝试使用twilio最新版本和较旧的版本,但似乎都出错了。
An exception of type 'System.MissingMethodException' occurred in Nop.Plugin.SMSProvider.nopSMS.dll but was not handled in user code
Nop.Plugin.SMSProvider.nopSMS.dll中发生类型'System.MissingMethodException'的异常,但未在用户代码中处理
Additional information: Method not found: 'Void RestSharp.RestClient.set_BaseUrl(System.String)'.
附加信息:找不到方法:'Void RestSharp.RestClient.set_BaseUrl(System.String)'。
What should I do? 我该怎么办?
Twilio evangelist here. Twilio的传播者在这里。
RestSharp made a breaking change in their last release, changing the BaseUrl property from a string to a System.Uri type. RestSharp在上一个版本中进行了重大更改,将BaseUrl属性从字符串更改为System.Uri类型。 The Twilio library was updated to address this change and a new package was released.
更新了Twilio库以解决此更改,并发布了一个新软件包。
If you install Twilio package 3.6.25 then it should install RestSharp 105.0.1 as a dependency. 如果安装Twilio软件包3.6.25,则应将RestSharp 105.0.1安装为依赖项。
Hope that helps. 希望能有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.