-
Notifications
You must be signed in to change notification settings - Fork 48
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
NotSupportedException in .NET 7 #241
Comments
Maybe this is related to aspnet/Announcements#494 which should be fixed in rc-2 |
I have to admit that I haven't beta tested NET7. Give me some time to review the links you have provided and run the test under NET7. By the way, do you have a code,sample to help me reproduce the problem? |
Thanks for a quick response! The code I tested is pretty simple:
This fails with the exception above. This didn't happen on .NET 6. I've migrated straight to rc-1 so I'm not sure if previous versions worked well, but given the accouncement (aspnet/Announcements#494) I would think that this might very well get fixed in rc-2 by the .NET team. |
I am only starting my investigation but I thought I would share my thoughts and findings so far: I think the root of the problem you are highlighting is that the .NET team made a breaking change in System.Text.Json in .NET7: they are no longer falling back to reflection based serialization when a type is not explicitly specified in the serialization context. It so happens that all model classes are specified in ZoomNet's custom serialization context BUT (and this is important) none of the I haven't tested this yet but I'm pretty sure this problem will go away if I explicitly specify all the |
I finally have my workstation configured with .NET7 and I am able to reproduce the problem simply by running the unit tests and the integration tests. In fact, what I am observing is even worse than I originally imagined: it's not just the For example, despite the fact that Recording, ChatChannelMember, MeetingSummary and PhoneNumber are specified in our custom serialization context, I am getting the following exceptions:
I tried the |
I published a beta package on my MyGet feed for .NET7 I think it should solve all the |
Thanks so much @Jericho ! I've installed |
Thanks for confirming. I'll work on merging the changes into the main branch so it gets included in the next release. |
🎉 This issue has been resolved in version 0.51.1 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
Hey guys,
Using the
.NET 7.0.0-rc.1
we get the following exception:Exception:
This seems to be related to dotnet/aspnetcore#43236 and a potential workaround is also mentioned at dotnet/runtime#71714
Would be great if you could release a preview with this fix as it's currently preventing users from using ZoomNet in .NET 7 :-)
The text was updated successfully, but these errors were encountered: