473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Deserializing Serialized XML failes in .NET 2

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
May 30 '06 #1
1 1925
I think it will be great if you attach you code as a cs file here. So I can
just include in a project and play with it. Is that ok?

chanmm

"Mike9900" <Mi******@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.com...
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

May 30 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Justin Armstrong | last post by:
I'm having difficulties deserializing some objects. Consider the following example of what I'm trying to do: ---------------------------------------------------------- class Person { string...
3
by: Chrigel | last post by:
Hi all, We have problems deseralizing objects previously serialized as XML. This did work fine with .NET 1.1 but since we have installed SP1, deserializing fails (but serializing works). The...
5
by: Lucas | last post by:
Well, here's the situation.. It's pretty simple; just that I can't get it to work. I have 2 Executables.. The first one is called CSharp.exe which is a simple WinForm App. I have a single...
2
by: Earl Teigrob | last post by:
I am saving and restoring value types such as Int32, DateTime and Boolean in strings. I was wondering if there is a mechanism build into .NET for serializing and deserializing these to string...
6
by: Steve Teeples | last post by:
I use serialization to write class data to a file. During my development of this class I need to add properties or fields on occation. After adding a property, when deserializing the data saved...
7
by: farseer | last post by:
Hi, i am getting an error when trying to deserialize and xml. the error is shown below. i get this error regardless if i try to desearialize in C# or VB. the XML itself does infact contain a...
2
by: Drolem | last post by:
Hello All, I use the following method to serialize a settings class to a string: '======================================================================= Public Shared Function...
5
by: Veilchen | last post by:
Hi, I need to deserialize an existing object (not generate its code) from a serialized XML file. The only information I have about how the deserialization method is an input XML schema (which...
0
by: theonlydavewilliams | last post by:
Hi there I'm hoping there's an easy answer to a (hopefully) not too long-winded issue... I'm building a C# web client using a proxy wsdl.exe'd from a wsdl file and six schemas, each in a different...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.