Hello,
We have a serialized XML from version 1.1 of .NET Framework and want to
deserialize it in .NET Framework 2.0, but it failes to do so with the
following error:
Parse Error, no assembly associated with Xml key
a1:http://schemas.microsoft.com/clr/nsa...c9a20b0583cd1d
TemplateManager
at
System.Runtime.Serialization.Formatters.Soap.SoapH andler.ProcessGetType(String value, String xmlKey, String& assemblyString)
at
System.Runtime.Serialization.Formatters.Soap.SoapH andler.ProcessType(ParseRecord pr, ParseRecord objectPr)
at
System.Runtime.Serialization.Formatters.Soap.SoapH andler.ProcessAttributes(ParseRecord pr, ParseRecord objectPr)
at System.Runtime.Serialization.Formatters.Soap.SoapH andler.StartChildren()
at System.Runtime.Serialization.Formatters.Soap.SoapP arser.ParseXml()
at System.Runtime.Serialization.Formatters.Soap.SoapP arser.Run()
at
System.Runtime.Serialization.Formatters.Soap.Objec tReader.Deserialize(HeaderHandler handler, ISerParser serParser)
at System.Runtime.Serialization.Formatters.Soap.SoapF ormatter.Deserialize(S
TemplateManager is the classs which we serialized it in 1.1. Also the
version of this project has not changed from 1.1 to 2, only .NET Framework
version has changed.
This is how TemplateManager is defined:
[Serializable]
public class TemplateManager:IDisposable
{
private ArrayList list=new ArrayList();
[NonSerialized]
public int currentTemplateID;
[NonSerialized]
public ArrayList oList=null;//not serializable
[NonSerialized]
public PrintDetails printDetails=new PrintDetails();
/// <summary>
/// Determines wether to save the designer as
/// binary or SOAP
/// </summary>
[NonSerialized]
public bool IsBinaryFormatter=false;
public TemplateManager()
{
}
public void Dispose()
{
list.Clear();
list=null;
if(oList!=null)
{
oList.Clear();
oList=null;
}
}
/// <summary>
/// Loads all the controls
/// </summary>
private void Load()
{
//somw codes
}
}//End of class
--
Mike