Closed Junjun-zhao closed 4 months ago
Related: #6267
Application needs to add <EnableUnsafeBinaryFormatterSerialization>True</EnableUnsafeBinaryFormatterSerialization>
and/or BrightIdeasSoftware.ObjectListView
will need to be updated to use a different form of serialization or add a typeconverter.
Update for the workaround: It works well with the public Nuget package for the application. Closing this issue. We will file an new issue to notify the app owner about this change.
.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>