[dotnet-sdk-9.0.100-preview.6.24325.8] SCM2020 launch failed with error: Could not load file or assembly 'System.Runtime.Serialization.Formatters, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' #9311
Labels
Investigate
Requires further investigation by the WPF team.
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: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.Serialization.Formatters, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
Reproduction Steps
App Repro steps:
1.Set EnableUnsafeBinaryFormatterSerialization switch to True and set runtime version to .NET 9.0.100-preview.6.24325.8 in SCM2020 - Server.runtimeconfig.json.
2.Restore database refer to devdiv bug.
3.Launching SCM2020\Server\SCM2020-Server.exe
4.Launching SCM2020\Client\SCM2020-Client.exe.
5.Click “Close” button.
6.Click “Cadastro” button, then select “Grupo” item.
7.Input “Appcompat” in textbox, then click “Salvar Grupo” button.
8.Click “Ok” bottom.
9.Click “Cadastro” button, then select “Setor” item.
Expected behavior
Launch successfully.
Actual behavior
App is crashed
Exception:
Regression?
Yes
Verify Scenarios:
1). Windows 10 21H2 AMD64 + dotnet-sdk-9.0.100-preview.6.24314.10: Pass
2). Windows 10 21H2 AMD64 + dotnet-sdk-9.0.100-preview.7.24321.3: Fail
3). Windows 10 21H2 AMD64 + dotnet-sdk-9.0.100-preview.6.24325.8: Fail
Known Workarounds
Yes.
Try with the following steps:
<EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization>
Impact
No response
Configuration
Application Name: SCM2020(WPF, .NET Core 3.1)
OS: Windows 10 21H2
CPU: X64
.NET Build Number: dotnet-sdk-9.0.100-preview.6.24325.8
App or Source Checking at: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2110609
Other information
@dotnet-actwx-bot @dotnet/compat
The text was updated successfully, but these errors were encountered: