简体   繁体   English

错误提示:找不到方法:“无效RestSharp.RestClient.set_BaseUrl(System.String)”。 在特维里奥沙普

[英]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.

相关问题 找不到方法:'Void RestSharp.RestClient.set_BaseUrl(System.String)'。在TWILIO - Method not found: 'Void RestSharp.RestClient.set_BaseUrl(System.String)'. in TWILIO 如何更改 twilio-csharp 的 BaseUrl? - How can I change BaseUrl for twilio-csharp? 找不到方法:'Void Microsoft.Graph.BaseRequest.set_Method(System.String)' - Method not found: 'Void Microsoft.Graph.BaseRequest.set_Method(System.String)' 查询上的RavenDB异常 - 未找到方法:'Void Raven.Abstractions.Data.IndexQuery.set_DefaultField(System.String)' - RavenDB exception on query - Method not found: 'Void Raven.Abstractions.Data.IndexQuery.set_DefaultField(System.String)' 找不到方法:'无效 System.Diagnostics.Tracing.FrameworkEventSource.BeginGetResponse(System.Object,System.String)' - Method not found: 'Void System.Diagnostics.Tracing.FrameworkEventSource.BeginGetResponse(System.Object, System.String)' 找不到方法:'Void Google.Apis.Util.Store.FileDataStore..ctor(System.String)' - Method not found: 'Void Google.Apis.Util.Store.FileDataStore..ctor(System.String)' 找不到方法:'Void SimpleInjector.ScopedLifestyle..ctor(System.String, Boolean)' - Method not found: 'Void SimpleInjector.ScopedLifestyle..ctor(System.String, Boolean)' 找不到Swagger方法IncludeXmlComments(System.String) - Swagger Method not found IncludeXmlComments(System.String) 在安装twilio-csharp的下一代版本时出现问题 - Issue while installing the next-gen version of twilio-csharp 使用 RestSharp RestClient 方法时显示错误 - Error showing while using RestSharp RestClient method
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM