Thanks

> >What kind of exception is thrown by the Serializer?
> SerializationException: 
> <http://msdn.microsoft.com/library/default.asp?url=/library/en
> -us/cpref/html/frlrfSystemRuntimeSerializationSerializationExc
> eptionClassTopic.asp>

Now I have found out that it is not the Serialization that goes wrong, it is
probably the cast of the serialized object that goes wrong:

Catalog calReturnCatalog = new Catalog();
XmlSerializer serializer = new XmlSerializer(typeof(Catalog));
XmlTextReader xmlReader = new XmlTextReader(p_sFilename);
try
    {
        calReturnCatalog = (Catalog)serializer.Deserialize(xmlReader);
    }

catch( SerializationException e)
    {
        //I never get here
    }
finally
    {
        xmlReader.Close();
    }


The XML file is loaded correct, but I do not catch any
SerializationException, which I believe is because it is the cast of the
serializer to a Catalog object that goes wrong..


<Thomas/>



---
You are currently subscribed to dotnet as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/


Reply via email to