NState error


Author
Message
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Scott,

Yes that is correct - deleting this line of code will revert the control to its default state and the design time state will be lost.

You can serialize the control state to CustomXML format which we try to maintain as backward compatible and import the saved state to the new version of the control. In general we decided to use binary serialization in the winform designer because it was much faster than XML.



Best Regards,
Nevron Support Team


Frank Wolfs
Frank Wolfs
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)
Group: Forum Members
Posts: 3, Visits: 16
Last time I checked, deleting this line of code caused us to lose the chart we designed, and required it to be completely redesigned. Is there a recommended upgrade path, to preserve any designed charts? We had to manually code all the options instead of using the wizard to skirt the issue.
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Lou,

You can safely delete those lines of code, which are generated by the designer.

In general the problem is that .NET binary serialization is not backward compatible so it cannot read states saved with older versions of the assemblies. We did not want to use backward compatible serialization (XML, Custom XML) in the design state as it is slower than binary. Let us know if you meet any problems or have any questions.



Best Regards,
Nevron Support Team


Lou Laskey
Lou Laskey
Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)
Group: Forum Members
Posts: 24, Visits: 2

To All,

Development Environment: Win7, MSVS 2010, C#

I recently updated to 2012.1 and am currently getting the following error when opening a form with charts in the forms designer.

Object of type 'Nevron.Chart.Winform.NState' cannot be converted to type 'Nevron.Chart.Winform.NState'.

Here is an example of the code in the designer from a form that has 32 charts on it that is causing the issue:

this.Wave_6.State = ((Nevron.Chart.WinForm.NState)(resources.GetObject("Wave_6.State")));

If I remove all the NState lines from the designer code for a form, I can open the form with the forms designer but I haven't gotten far enough along to see if all runs ok.

Any help would be appreciated.

TIA,

Lou

 

 


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search