[dotnet-sdk-9.0.100-preview.6.24325.8] mRemote launch failed with an exception : PlatformNotSupportedException: BinaryFormatter serialization and deserialization have been removed." #11599
Labels
area-Serialization-BinaryFormatter-FeatureWork
Feature work under the general area of BinaryFormatter related serialization
.NET version
Dotnet Info:
Did it work in .NET Framework?
Not tested/verified
Did it work in any of the earlier releases of .NET Core or .NET 5+?
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.6.24325.8: Fail
3). Windows 10 21H2 AMD64 + dotnet-sdk-9.0.100-preview.7.24321.3: Fail
Issue 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:
"The type initializer for 'BrightIdeasSoftware.ObjectListView' threw an exception."
After debugging the source code, we found this exception is caused by "PlatformNotSupportedException: BinaryFormatter serialization and deserialization have been removed.".
Application Name: mRemoteNG(WinForms)
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/2100188
Github Link: https://github.com/mRemoteNG/mRemoteNG
Steps to reproduce
Expected Result:
Launch successfully.
Actual Result:
Launch failed with error:
Inner Exception when debugging code:
Known Workarounds
Yes.
Try with the following steps:
<EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization>
@dotnet-actwx-bot @dotnet/compat
The text was updated successfully, but these errors were encountered: