-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[dotnet-sdk-9.0.100-preview.6.24325.8] Transmogrify get System.Reflection.ReflectionTypeLoadException: 'Unable to load one or more of the requested types.' #9309
Comments
The support for .NET Core 3.0 ended in 2020 and you are trying to run it on .NET 9. Upgrade to a supported version, which would allow you to use the formatters package. |
This one is a bit weird because the application is inspecting all types in all assemblies. Can't tell who is at fault here without debugging. Either way, my comment stands, I don't understand why we are trying to run .NET 3 apps on .NET 9 runtime. |
The type at which the loading fails is private On WPF side this is probably being taken care of by #8532. However, I consider it a bug in the application (Transmogrify) that it tries to load all types in all assemblies without any attempt at failure recovery. |
Update for the workaround: It works well with the public Nuget package for the application. Leave this issue open for dev team to investigate if this is an issue in Application side on WPF side. |
@harshit7962 Any update for this issue? Is this a bug in Application side or WPF side? |
I think this should be fixed with my PR. That will make it so there is no longer a load exception here. @Junjun-zhao could you give a try with the latest RC1 build of WPF that has that fix (just merged). |
Hi @ericstj, we verified this issue on the latest build dotnet-sdk-9.0.100-preview.7.24402.8, it has been fixed. Thanks. |
Description
When run the 3rd party application with the latest .NET 9 build "dotnet-sdk-9.0.100-preview.6.24325.8", it failed to launch with error:
Reproduction Steps
1.Change the runtime.config file to let the app run against with dotnet-sdk-9.0.100-preview.6.24325.8 and Enable BinaryFormatter.
Expected behavior
Launch successfully.
Actual behavior
Launch failed.
Exception details: (Exception comes from Event Viewer)
Regression?
Yes
Verify Scenarios:
1). Windows 10 21H2 AMD64 + dotnet-sdk-9.0.100-preview.6.24317.13: Pass
2). Windows 10 21H2 AMD64 + dotnet-sdk-9.0.100-preview.6.24325.8: Fail
3). Windows 10 21H2 AMD64 + dotnet-sdk-9.0.100-preview.7.24321.3: Fail
Known Workarounds
Yes.
Try with the following steps:
<EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization>
Impact
No response
Configuration
Application Name: Transmogrify (WPF)
OS: Windows 10 21H2
CPU: X64
.NET Build Number: dotnet-sdk-9.0.100-preview.6.24325.8
App & Source Checking at: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2110581
Github Link: https://github.com/FTWinston/Transmogrify
Dotnet Info:
@dotnet-actwx-bot @dotnet/compat
Other information
No response
The text was updated successfully, but these errors were encountered: