Skip to content
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

MissingMethodException when using Newtonsoft.Json v5 #32

Closed
mattjohnsonpint opened this issue Oct 31, 2017 · 0 comments
Closed

MissingMethodException when using Newtonsoft.Json v5 #32

mattjohnsonpint opened this issue Oct 31, 2017 · 0 comments
Labels

Comments

@mattjohnsonpint
Copy link
Owner

Currently, the minimum supported version of Newtonsoft.Json is 5.0.5. This compiles, but when using gives an error:

Unhandled Exception: System.TypeInitializationException:
The type initializer for 'TimeZoneNames.TZNames' threw an exception.
---> System.MissingMethodException: Method not found: 'Newtonsoft.Json.JsonSerializer Newtonsoft.Json.JsonSerializer.CreateDefault()'.
   at TimeZoneNames.TimeZoneData.Load()
   at TimeZoneNames.TZNames..cctor()
   --- End of inner exception stack trace ---
   at TimeZoneNames.TZNames.GetLanguageKey(String languageCode)
   at TimeZoneNames.TZNames.GetCountryNames(String languageCode)

Updating Newtonsoft.Json to 6.0.1 or higher resolves the problem. The next release should increase the minimum dependency, or otherwise work around this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant