Error in VS: does not implement IXMLSerializable interface
Posted: Wed Jun 17, 2009 3:47 pm
Using TeeChart.dll version 3.5.3425.20244
Visual Studio 2005
Created a new Windows Forms project
Added a TeeChart Controller control to Form1
Added a TeeChart control to Form1, set its Dock property = Top
Right click on the Chart and select Edit
Added a Line Series to the chart
Go to the Series | General Tab and clear the check box Show in Legend
Go to the Chart | 3D tab and clear the 3D check box
Go to Series | Data tab and select Data Source tab, select Random from the drop down box, leave the default # points as 25
Press the Apply button
Close the Chart Editor
Select the Chart Controller and set its Chart property to the chart control tchart1
Close the form1 tab in VS, and get the error dialog that says
"Type System.Drawing.Color, System.Drawing, Version 2.0.0 , Culture=neutral, PublicKeyToken='b03f5f7f11d50a3a' does not implement IXMLSerilizable interface therefore can not proceed with serialization"
This error will pop up regularly as I continue to work in VS
Seems like a bug.
Found some more information. Since we own the source code as well, found this same error when I added the source to my project
Visual Studio 2005
Created a new Windows Forms project
Added a TeeChart Controller control to Form1
Added a TeeChart control to Form1, set its Dock property = Top
Right click on the Chart and select Edit
Added a Line Series to the chart
Go to the Series | General Tab and clear the check box Show in Legend
Go to the Chart | 3D tab and clear the 3D check box
Go to Series | Data tab and select Data Source tab, select Random from the drop down box, leave the default # points as 25
Press the Apply button
Close the Chart Editor
Select the Chart Controller and set its Chart property to the chart control tchart1
Close the form1 tab in VS, and get the error dialog that says
"Type System.Drawing.Color, System.Drawing, Version 2.0.0 , Culture=neutral, PublicKeyToken='b03f5f7f11d50a3a' does not implement IXMLSerilizable interface therefore can not proceed with serialization"
This error will pop up regularly as I continue to work in VS
Seems like a bug.
Found some more information. Since we own the source code as well, found this same error when I added the source to my project
Code: Select all
In Steema.TeeChart.Styles.Series
internal string SetSeriesData(DataSet data)
{
string result = null;
if (manualData)
{
MemoryStream stream = new MemoryStream();
#if POCKET2003
System.Xml.XmlTextWriter writer = new System.Xml.XmlTextWriter(stream, System.Text.Encoding.Default);
data.WriteXml(writer, System.Data.XmlWriteMode.WriteSchema); // <- EXCEPTION OCCURS HERE!!!!!!!
writer.Flush();
result = Convert.ToBase64String(stream.ToArray(), 0, Convert.ToInt32(stream.Length));
#else
data.WriteXml(stream);
result = Convert.ToBase64String(stream.ToArray());
#endif
}
return result;
}