This is a migrated thread and some comments may be shown as answers.

2010.1 Upgrade Issue - SizeU is not serializable

1 Answer 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
rh
Top achievements
Rank 1
rh asked on 13 Mar 2010, 06:34 PM
I got this error on about 5 of my reports when upgrading to reporting 2010.1. The errors were on the resx file of the report.

System.InvalidOperationException: Item named 'detail.GridSize' of type 'Telerik.Reporting.Drawing.SizeU' cannot be added to the resource file because it is not serializable. at System.Resources.ResXDataNode..ctor(String name, Object value) at System.Resources.ResXResourceWriter.AddDataRow(String elementName, String name, Object value) at System.Resources.ResXResourceWriter.AddMetadata(String name, Object value) at Telerik.Reporting.UpgradeWizard.Engine.Utilities.ResourceFile.SaveAs(String fileName) at Telerik.Reporting.UpgradeWizard.Engine.ResourceItem.UpgradeInternal() at Telerik.Reporting.UpgradeWizard.Engine.UpgradeItem.Upgrade()

1 Answer, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 15 Mar 2010, 11:09 AM
Hi rh,

With the Q1 2010 release the SizeU structure is not serializable anymore, and in fact it is not expected to be serialized at all.

It looks like you're working with some quite old reports, created a long time ago when section designers had its own grid size. Since Q1 2008 version we've released a 2nd version of the report designer and since then the grid size is defined on the report level and is applied to all sections:

<metadata name="$this.SnapGridSize" type="Telerik.Reporting.Drawing.Unit, Telerik.Reporting, Version=2.5.8.414, Culture=neutral, PublicKeyToken=a9d7983dfcc261be">
  <value>0.1in</value>
</metadata>

So we would suggest to fix the resource files before running the upgrade wizard; you may even delete the entire resx files if they don't contain any important information (strings, images, etc.)

Regards,
Svetoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
rh
Top achievements
Rank 1
Answers by
Svetoslav
Telerik team
Share this question
or