Soap Serialization Exception

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Valéry Bezençon

    #1

    Soap Serialization Exception

    When I deserialize my data with the SoapFormatter, I get the following
    exception message: "Parse error, no assembly associated with Xml key"
    Here is the code of my deserialization method:

    public IMessage DeSerialize(byt e[] data)
    {
    SoapFormatter sf = new SoapFormatter() ;
    MemoryStream ms = new MemoryStream(da ta);
    IMessage msg = (IMessage)sf.De serialize(ms);
    ms.Close();
    return msg;
    }

    The object that was serialized into data was an instance of a type
    implementing IMessage.
    I suppose the problem comes from the fact that the stream is
    deserialized into an IMessage which is a different type than the one of
    the object that was serialized, but I don't know how to make it possible.
    Can anybody help?

    Valéry

Working...