My .Net 7 C# application is given this error.
Sometimes it’s not happend
logcenter log:
System.MissingMethodException: Method not found: ‘Void RestSharp.RestClient..ctor(System.String)’.
at …..service.http.HttpCommunication.HttpAsync(Method httpVerb, String hostUrl, Dictionary2 headers, Object requestObject, Func2 logFunction)
I’m using RestSharp (110.2.0).
API communication discarted.
HttpRequest contruction discarted.
>Solution :
Sadly, sometimes this happens and it appears that RestSharp have removed a method or constructor that is affecting backwards compatibility here.
I believe that the problem is because the two RestSharp versions are different in each dependency. Is there any solution or workaround?