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.F ormatters.Soap. SoapHandler.Pro cessGetType(Str ing value, String xmlKey, String& assemblyString)
at
System.Runtime. Serialization.F ormatters.Soap. SoapHandler.Pro cessType(ParseR ecord pr, ParseRecord objectPr)
at
System.Runtime. Serialization.F ormatters.Soap. SoapHandler.Pro cessAttributes( ParseRecord pr, ParseRecord objectPr)
at System.Runtime. Serialization.F ormatters.Soap. SoapHandler.Sta rtChildren()
at System.Runtime. Serialization.F ormatters.Soap. SoapParser.Pars eXml()
at System.Runtime. Serialization.F ormatters.Soap. SoapParser.Run( )
at
System.Runtime. Serialization.F ormatters.Soap. ObjectReader.De serialize(Heade rHandler handler, ISerParser serParser)
at System.Runtime. Serialization.F ormatters.Soap. SoapFormatter.D eserialize(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 currentTemplate ID;
[NonSerialized]
public ArrayList oList=null;//not serializable
[NonSerialized]
public PrintDetails printDetails=ne w PrintDetails();
/// <summary>
/// Determines wether to save the designer as
/// binary or SOAP
/// </summary>
[NonSerialized]
public bool IsBinaryFormatt er=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