-
Notifications
You must be signed in to change notification settings - Fork 38
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
Unable to write a value of type StrongGrid.Models.MailPersonalization => The IJsonTypeInfoResolver returned a JsonTypeInfo instance whose JsonSerializerOptions setting does not match the provided argument #476
Comments
FWIW, this little bit in
|
Thanks for reporting this and for the additional information. I'll look into it this weekend and report back what I find. |
I still can't explain why this problem is occurring, but I can confirm that I am able to reproduce it when I create a new .net7 console app and reference the latest StrongGrid package from NuGet (which, by the way, targets .net5 and .net6). Is the problem related to some quirk when referencing a .net6 library from a .net7 project? Maybe this is an argument in favor of expediting #463? So far, I already faced (and fixed) one serialization problem caused by a change introduced in .net7 (explanation here, I fixed it here). This might be another similar situation. I'm continuing my research... |
I found the culprit and I know how to fix the issue, but I still can't explain why this problem occurs only when our library targets .net6 and it's used in a .net7 application. An update should be available on NuGet tomorrow. |
🎉 This issue has been resolved in version 0.95.1 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
Thank you so much! I tested out the update in our solution, and it's resolved the problem. |
Excellent! Thank you for confirming. |
After upgrading from .NET 6 to .NET 7, we're getting the following error message(s) when trying to call
client.Mail.SendAsync()
:I haven't yet put together a shareable repro, but this is the code we're using to make the call:
The text was updated successfully, but these errors were encountered: