Serialization and Deserialization Problem
Posted: Fri Apr 07, 2006 5:03 pm
I faced to problem. Firstly I used trial teechart in my application (vesion 2.0.2040.15118). I saved chart into file using next code
protected Steema.TeeChart.TChart chart;
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
info.AddValue("chart", chart);
}
After that I uninstalled trial version and installed license teechart (version 2.0.2179.21172). Than I rebuilt my application using new teechart, then I tried to restore saved before chart.
fileStream = File.Open(fileName, FileMode.Open, FileAccess.ReadWrite);
SoapFormatter serializer = new SoapFormatter();
Some_type some_type = (Some_type)serializer.Deserialize(fileStream);
there is an error!!!
"Parse Error, no assembly associated with Xml key a11:http://schemas.microsoft.com/clr/nsasse ... 276c77bdb7 TChart"
As I understand it has happened due to the fact the application cann't
find required assembly.
Please, any idea to resolve this problem.
Thanks.
protected Steema.TeeChart.TChart chart;
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
info.AddValue("chart", chart);
}
After that I uninstalled trial version and installed license teechart (version 2.0.2179.21172). Than I rebuilt my application using new teechart, then I tried to restore saved before chart.
fileStream = File.Open(fileName, FileMode.Open, FileAccess.ReadWrite);
SoapFormatter serializer = new SoapFormatter();
Some_type some_type = (Some_type)serializer.Deserialize(fileStream);
there is an error!!!
"Parse Error, no assembly associated with Xml key a11:http://schemas.microsoft.com/clr/nsasse ... 276c77bdb7 TChart"
As I understand it has happened due to the fact the application cann't
find required assembly.
Please, any idea to resolve this problem.
Thanks.