Home All Groups Group Topic Archive Search About

Deserialization version mismatch

Author
11 Apr 2005 3:28 AM
Clark Sann
I've added a property to one of my classes and now, when I deserialize it I
am getting a version mismatch.  How to you add or subtract properties in
classes that are being serialized / desererialized???

Thanks!

Clark

Author
11 Apr 2005 1:57 PM
Samuel R. Neff
Can only do that if you handle the mapping yourself by implementing
ISerializable.

Sam


On Sun, 10 Apr 2005 22:28:16 -0500, "Clark Sann" <cs***@earthlink.net>
wrote:

>I've added a property to one of my classes and now, when I deserialize it I
>am getting a version mismatch.  How to you add or subtract properties in
>classes that are being serialized / desererialized???
>
>Thanks!
>
>Clark
>

B-Line is now hiring one Washington D.C. area VB.NET
developer for WinForms + WebServices position. 
Seaking mid to senior level developer.  For
information or to apply e-mail resume to
sam_blinex_com.
Author
5 Jul 2005 7:24 AM
Rohith
Samuel,

I am also facing the same problem. I implemented the Iserializable
interface, But the Application sends a Possible Version Mismatch exception.
This exception occurs before the deserialization constructor is called.

Rohith

Show quoteHide quote
"Samuel R. Neff" wrote:

>
> Can only do that if you handle the mapping yourself by implementing
> ISerializable.
>
> Sam
>
>
> On Sun, 10 Apr 2005 22:28:16 -0500, "Clark Sann" <cs***@earthlink.net>
> wrote:
>
> >I've added a property to one of my classes and now, when I deserialize it I
> >am getting a version mismatch.  How to you add or subtract properties in
> >classes that are being serialized / desererialized???
> >
> >Thanks!
> >
> >Clark
> >
>
> B-Line is now hiring one Washington D.C. area VB.NET
> developer for WinForms + WebServices position. 
> Seaking mid to senior level developer.  For
> information or to apply e-mail resume to
> sam_blinex_com.
>