This question is locked. New answers and comments are not allowed.
Hi,
we have Silverlight 4 project with RadTileView component and on it a couple of tiles,with RadGridView controls etc...
Depending on the layout of our page we get the error when trying to save layout.
It happens only in certain scenarios,and we couldn't find the reason why it might be.
The error is:
System.InvalidOperationException
"There was an error generating the XML document."
Stack trace:
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle)
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces)
at System.Xml.Serialization.XmlSerializer.Serialize(TextWriter textWriter, Object o, XmlSerializerNamespaces namespaces)
at System.Xml.Serialization.XmlSerializer.Serialize(TextWriter textWriter, Object o)
at Telerik.Windows.Persistence.Serialization.Serializer.Serialize(Object obj)
at Telerik.Windows.Persistence.PersistenceManager.Save(Object obj)
at InsaSLPortalApp.ContentPage.PersistLayout()
at InsaSLPortalApp.ContentPage.ContentPage_Unloaded(Object sender, RoutedEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
InnerException:
The type System.Collections.Generic.KeyValuePair`2[[System.String, mscorlib, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, mscorlib, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] was not expected. Use the XmlInclude attribute to specify types that are not known statically.
The version of the PersistanceFramework is: 2011.2.712.1040
Thank you,
Igor
we have Silverlight 4 project with RadTileView component and on it a couple of tiles,with RadGridView controls etc...
Depending on the layout of our page we get the error when trying to save layout.
It happens only in certain scenarios,and we couldn't find the reason why it might be.
The error is:
System.InvalidOperationException
"There was an error generating the XML document."
Stack trace:
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle)
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces)
at System.Xml.Serialization.XmlSerializer.Serialize(TextWriter textWriter, Object o, XmlSerializerNamespaces namespaces)
at System.Xml.Serialization.XmlSerializer.Serialize(TextWriter textWriter, Object o)
at Telerik.Windows.Persistence.Serialization.Serializer.Serialize(Object obj)
at Telerik.Windows.Persistence.PersistenceManager.Save(Object obj)
at InsaSLPortalApp.ContentPage.PersistLayout()
at InsaSLPortalApp.ContentPage.ContentPage_Unloaded(Object sender, RoutedEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
InnerException:
The type System.Collections.Generic.KeyValuePair`2[[System.String, mscorlib, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, mscorlib, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] was not expected. Use the XmlInclude attribute to specify types that are not known statically.
The version of the PersistanceFramework is: 2011.2.712.1040
Thank you,
Igor