-
Notifications
You must be signed in to change notification settings - Fork 165
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
The type initializer for 'System.Text.Json.JsonSerializer' threw an exception #108
Comments
@leastprivilege I went through the link you provided and tried migrating nuget management format to PackageReference but after migrating to PackageReference, I started getting lots of other errors. |
Well - yes - it sucks ;) If you read through the thread you can see this is a Microsoft package mismatch issue - I am surprised it has not been fixed yet. I fixed this sample: |
@leastprivilege I have started getting xamarin package issues so I have downgraded the identitymodel version for now. |
It is not an IdentityModel issue. It's a Microsoft issue as you can see from the referenced thread. It's out of my control. |
After updating IdentityModel to 5.1.0 and IdentityModel.OidcClient to 4.0.0, I started getting below exception (only in iOS)
Error loading discovery document: Error connecting to https://auth.example.org/.well-known/openid-configuration/jwks. The type initializer for 'System.Text.Json.JsonSerializer' threw an exception..
The text was updated successfully, but these errors were encountered: