-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]MissingMethodException is thrown when invoking Azure search SDK #8955
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc |
1 similar comment
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc |
@brjohnstmsft could you take a look at this? Have you seen this before? |
@angelwen1396 This is a known issue that was fixed in version 5.0.0 back in April 2018. You will need to upgrade to at least that version, but I strongly recommend you upgrade to the latest version. We have provided a comprehensive set of guides to upgrading code that calls the .NET SDK. It should require minimal effort on your part, and the benefit is that you will get the latest features and bug fixes. We generally do not update old SDK versions unless a critical security issue is found. |
Closing this issue since we do not plan to backport this fix to old SDK versions. @angelwen1396 If you have trouble upgrading to the new version, feel free to ask questions on Stack Overflow and tag them with |
Thanks for working with Microsoft on GitHub! Tell us how you feel about your experience using the reactions on this comment. |
An exception is thrown when invoking Azure search SDK.
MissingMethodException: Method not found: 'Newtonsoft.Json.SerializationBinder Newtonsoft.Json.JsonSerializerSettings.get_Binder()'.
Steps to reproduce the behavior:
var client = new SearchIndexClient("service name", "index name", new SearchCredentials("service key name"));
var response = await client.Documents.SearchWithHttpMessagesAsync(term, searchParameters, customHeaders: headers);
It should provide the search result upon the term.
The dependencies versions are:
Microsoft.Azure.Search(3.0.4)
Microsoft.Rest.ClientRuntime.Azure(3.3.10)
Newtonsoft.json(11.0.2)
This method works when I downgrade the Newtonsoft.json to 10.0.1. But currently due to the new feature development, I need to upgrade Newtonsoft.json from 10.0.1 to higher version like 11.0.2 or higher. Then this exception was thrown.
If upgrading the version of Microsoft.Azure.Search to higher version, lot of code changes need to be made due to build failures and I am not sure if this issue can be resolved.
Is there anything I can do to get over it before making big code changes?
The text was updated successfully, but these errors were encountered: