我在理解此問題時遇到了一些問題。無法加載文件或程序集'RestSharp,Version = 105.2.3.0
我有一個本地項目Twilio added via Nuget。但是當我將項目導出到我的IIS服務器時,即使我已經爲Twilio添加了所有DLL文件,也無法使用Twilio。
我覺得我缺少與包括或東西..
這東西是errormessage的我得到:
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()
Twilio使用RestSharp庫,因此看起來依賴性由於某種原因而失敗。嘗試將ReshSharp添加到您的項目中:Install-Package RestSharp –