I've just updated a solution from net8.0-windows to net9.0-windows, and am now getting a run time error when the application starts. The error is happening on this line:
CType(mainToolbarsManager, ComponentModel.ISupportInitialize).EndInit()
The exception details are as follows:
System.ApplicationException HResult=0x80131600 Message=Error encountered while serializing data into stream. Source=Infragistics.Win.UltraWinToolbars StackTrace: at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.SaveHelper(Stream stream, IFormatter formatter) at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.SaveAsBinaryHelper(Stream stream, Boolean saveCustomizations) at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.SaveAsBinary(Stream stream, Boolean saveCustomizations) at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.CreateRestorePointHelper() at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.CreateRestorePoint(Boolean asynchronous) at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.EndInitImpl() at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.System.ComponentModel.ISupportInitialize.EndInit() at Saturn.Main.MainForm.InitializeComponent() in C:\Work\Saturn\Desktop\Master\Saturn.Main\MainForm.designer.vb:line 1331 at Saturn.Main.MainForm..ctor() in C:\Work\Saturn\Desktop\Master\Saturn.Main\MainForm.vb:line 52 at System.RuntimeType.CreateInstanceOfT() This exception was originally thrown at this call stack: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(System.IO.Stream, object) Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.SaveHelper(System.IO.Stream, System.Runtime.Serialization.IFormatter) Inner Exception 1: PlatformNotSupportedException: BinaryFormatter serialization and deserialization have been removed. See https://aka.ms/binaryformatter for more information.
As I'm sure you know, BinaryFormatter is no longer permitted in net9, and I'm wondering if you've updated your winforms controls to cover this? If not, do you have an estimate of when you will support it? I'm using 24.1.57 currently
Thanks Andrew, I'd love to take a look at it - we have a large WinForms project that we are keen to move to net9, so it would be great to get an early peek to see how the support looks, and anything we will need to do to support it
Hello Kevin,
The 24.2 release for Windows Forms is not yet available publicly – I believe there is an issue with the website that our internal teams are working on to make this available. The user HerdMaster Development above mentioned he was able to install this because I provided them with a Trial installer via a private support case for the time being.
If you have an urgent need for version 24.2, I can provide the same to you in a private support case, along with a transcript of how we are supporting the usage of the methods that used Binary Formatter going forward, but I will not be able to provide you a licensed version until the public release when you will get a product key from your subscription.
I'm not seeing it available for download yet, either via Nuget or from my available downloads?
Michael DiFilippo said:Please wait until we release 24.2 which will support .NET 9.
So that was a lie. I have installed 24.2 now it has been released and its still not fixed.
I don't have an ETA unfortunately.