We use Telerik's PersistenceManager capabilities to save user settings to XML in a relational database (as desribed here
In particular, some of RadGridView's settings are stored this way.
This has worked fine for several months, until we performed an update of our Telerik libraries last week.
The XML the PersistenceManager produces, contains some type information concerning the types that were serialized to XML,
and contains lines like this:
"Telerik.Windows.Controls.GridView.GridViewLengthConverter, Telerik.Windows.Controls.GridView, Version=2011.2.712.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7"
After the Telerik libraries update, this causes an exception because we now use Telerik.Windows.Controls.GridView v2012...
When PersistenceManager.LoadFromXml is called, the PersistenceFramework tries to load the Type,
resulting in a TypeLoadException:
Could not load file or assembly 'Telerik.Windows.Controls.GridView,
Version=2011.2.712.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one
of its dependencies. The located assembly's manifest definition does not match
the assembly reference. (Exception from HRESULT: 0x80131040)
What is the best option to avoid this on Telerik updates?
Can we tell the Serializer not to Save the fully qualified type name to XML?
Thanks for your time,