-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
AssemblyLoadContext failed to unload assembly #76809
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis Issue DetailsDescriptionwe want to utilize the feature of uload in AssemblyLoadContext ,we tried the sample and it works fine(the plugin assembly can be unloaded),but if we use System.Text.Json to serialize an object in plugin, then the plugin assembly can not be unloaded any more. Reproduction Steps
Expected behaviorNumber of Assemblies Loaded in dotnet-counters does not increase Actual behaviorNumber of Assemblies Loaded in dotnet-counters increase until the Host.exe being terminated. Regression?Netcore3.1,Net6 Both with this issue Known WorkaroundsNo response ConfigurationNo response Other informationNo response
|
Duplicate of #65323. |
Description
we want to utilize the feature of uload in AssemblyLoadContext ,we tried the sample and it works fine(the plugin assembly can be unloaded),but if we use System.Text.Json to serialize an object in plugin, then the plugin assembly can not be unloaded any more.
Reproduction Steps
using the source code attachment which downloaded and changed from the sample code site
Compile and run the host.exe
using dotnet-counters to monitor the program ,pay attention to the Number of Assemblies Loaded in the dotnet-counters terminal.
Expected behavior
Number of Assemblies Loaded in dotnet-counters does not increase
Actual behavior
Number of Assemblies Loaded in dotnet-counters increase until the Host.exe being terminated.
Regression?
Netcore3.1,Net6 Both with this issue
Known Workarounds
No response
Configuration
No response
Other information
No response
Unloading.zip
The text was updated successfully, but these errors were encountered: