473,695 Members | 1,566 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Deserialization version mismatch

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
Nov 21 '05 #1
2 1287

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***@earthlin k.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.
Nov 21 '05 #2
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

"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***@earthlin k.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.

Nov 21 '05 #3

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

Similar topics

2
3513
by: WJ | last post by:
I have problem in using "Deserialization" method to work with SQL Session State. The session state data was recorded properly to MS/SQL Server ASPState by a web application. I then attempted to read the session data back from the SQL server using DataSet. Then call "Deserialize" to reveal the session class. I got the following error: "BinaryFormatter Version incompatibility. Expected Version 1.0. Received Version 623915045.807743536." ...
2
2608
by: Chris Fonnesbeck | last post by:
I'm trying to run the latest Postgresql on OSX 10.3, but am receiving a version mismatch error when I try and run the database: dyld: psql version mismatch for library: /usr/local/lib/libreadline.4.dylib (compatibility version of user: 4.2.0 greater than library's version: 4.0.0) Trace/BPT trap Has anyone else run into this problem, or know of a solution?
4
3151
by: Mike Sarbu | last post by:
Hello all, I have an XML file like this: <?xml version="1.0" encoding="utf-8"?> <SomeObject xmlns="http://www.abcinc.com/objectdefinition" xmlns:someobj=http://www.abcinc.com/objectdefinition> ...... </SomeObject>
3
9792
by: Amadelle | last post by:
Hi all and thanks in advance for your help, I am having problems deserializing an object which seems to be serializing just fine. I save the byte array of the serialized object in the database (when I check the database the field that holds the binary data seems populated), but when I want to deserialize this same byte array the application fails and gives me the following error: Binary stream does not contain a valid BinaryHeader, 0...
2
1781
by: Rohith | last post by:
I have a class which is serialized and stored in a file stream. Later I changed the class with adding some fields to it. Now when I deserialize (I am deserializing from a later version of my Application) the file framework throws an exception stating that “Possible Version mismatch. Type has x members, number of members deserialized is y.". Kindly let me know any work arounds for this problem. If possible send me a sample code that...
3
2064
by: AnkitAsDeveloper [Ankit] | last post by:
Hi i am serializing a 'ref struct' object as follows : private: void Seri( String ^path, Object^ obj ) { FileStream^ fileStrm ; try { //Serialize entire object into Binary stream
0
1030
by: tshad | last post by:
Where does this error come from and what causes it? Possible Version mismatch. Type FtsData.Position has 142 members, number of members deserialized is 102. I did find a post that refers to serializing in asp.net 1.1 and deserializing in asp.net 1.0. But that isn't the case here - I am just doing a post back. I am doing doing something like the following where Position is the object I
3
4993
by: John Glover | last post by:
To whoever can help, I've been having a problem with XML deserialization lately. I needed to serialize and deserialze two objects which inherited from Hashtable. Because IDictionary implementations cannot be serialized, I had to take matters into my own hands by implementing a wrapper over the Hashtable which implemted IXmlSerializable. I called it XmlHashtable. It has, among other convenience methods, a method
1
1413
by: Mythran | last post by:
We have an application on one server and a web service on another server. Our BLL and DAL layers are behind the web service. When a SqlException is thrown, the application receives the following error: System.Runtime.Serialization.SerializationException: Possible Version mismatch. Type System.Data.SqlClient.SqlError has 8 members, number of members deserialized is 7. After reviewing SqlError, framework v1.1 contains the following...
0
8623
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8565
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8977
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8839
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7656
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4577
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2997
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2269
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1971
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.