473,725 Members | 2,118 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Possible Version Mismatch?

I just upgraded to v1.1 of the framework and VS.Net 2003. I opened up one
of my solutions and rebuilt my project and all went well. I then ran my
project in debug mode. My program runs up fine, but then I try to open up a
file that it typically works with, my program has custom serialization to a
file for work that users do. This has always worked in the past, as I could
open and resave my files with no problems. Now I am unable to open these
files, that I had been working with in the previous .Net for well over 9
months. The error I get on deserialization says: "Possible Version
mismatch. Type System.Collecti ons.Comparer has 1 members, number of members
deserialized is 0." To me this seems like something directly related to the
Framework upgrade, although I'm not sure what the cause is or exactly how to
fix it and some initial searching around has produced nothing. If anybody
has any ideas, they would be greatly appreciated.

TIA

==============
Joe Reazor
Gorbel Inc.
email: joereaATgorbelD OTcom
Jul 19 '05 #1
2 3860
Hi Joe,

Since you are using a custom serialization, can you offer more information
such as which member in your class will throw the exception when you
deserializing in .NET framework 1.0. the file serialized in .NET framework
1.0.

In addition, can you post the class declaration that you are serializing
and deserializing, so that I can identify your problem.

If the error is caused by version mismatch, you may work around as follows.
1.Let the writer's application run under .NET 1.1. You can either
re-compile the
writer's project in VS.NET2003 or specify the runtime in the configueration
file,
like the following code:
<configuratio n>
<startup>
<requiredRuntim e version="v1.1.4 322"/>
</startup>
</configuration>
2. Let the reader's application runs under .NET 1.0, since the binary files
was
generated by the .NET 1.0 applications. You can either re-compile the
reader's
project in VS.NET 2002 or specify the runtime in the configuration file,
like the
following code:
<configuratio n>
<startup>
<requiredRuntim e version="v1.0.3 705"/>
</startup>
</configuration>

Please have a try and let me know if this does the work for you.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
From: "Joe Reazor" <jo*******@belg or.com>
Subject: Possible Version Mismatch?
Date: Mon, 18 Aug 2003 09:16:05 -0400
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <O0************ **@TK2MSFTNGP10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.genera l
NNTP-Posting-Host: smtp.gorbel.com 216.42.134.6
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:104885
X-Tomcat-NG: microsoft.publi c.dotnet.genera l

I just upgraded to v1.1 of the framework and VS.Net 2003. I opened up one
of my solutions and rebuilt my project and all went well. I then ran my
project in debug mode. My program runs up fine, but then I try to open up afile that it typically works with, my program has custom serialization to a
file for work that users do. This has always worked in the past, as I couldopen and resave my files with no problems. Now I am unable to open these
files, that I had been working with in the previous .Net for well over 9
months. The error I get on deserialization says: "Possible Version
mismatch. Type System.Collecti ons.Comparer has 1 members, number of membersdeserialized is 0." To me this seems like something directly related to theFramework upgrade, although I'm not sure what the cause is or exactly how tofix it and some initial searching around has produced nothing. If anybody
has any ideas, they would be greatly appreciated.

TIA

============ ==
Joe Reazor
Gorbel Inc.
email: joereaATgorbelD OTcom

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 19 '05 #2
Thanks for the response. I had posted this in the framework newsgroup too
since I hadn't had a response here, and got one there much quicker. I did
determine the cause was the SortedList framework object which apparently has
a bug. I discovered a workaround which is to use a SurrogateSelect or, but
hopefully MS comes out with a fix too.
==============
Joe Reazor
Gorbel Inc.
email: joereaATgorbelD OTcom
"Peter Huang [MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:33******** ******@cpmsftng xa06.phx.gbl...
Hi Joe,

Since you are using a custom serialization, can you offer more information
such as which member in your class will throw the exception when you
deserializing in .NET framework 1.0. the file serialized in .NET framework
1.0.

In addition, can you post the class declaration that you are serializing
and deserializing, so that I can identify your problem.

If the error is caused by version mismatch, you may work around as follows. 1.Let the writer's application run under .NET 1.1. You can either
re-compile the
writer's project in VS.NET2003 or specify the runtime in the configueration file,
like the following code:
<configuratio n>
<startup>
<requiredRuntim e version="v1.1.4 322"/>
</startup>
</configuration>
2. Let the reader's application runs under .NET 1.0, since the binary files was
generated by the .NET 1.0 applications. You can either re-compile the
reader's
project in VS.NET 2002 or specify the runtime in the configuration file,
like the
following code:
<configuratio n>
<startup>
<requiredRuntim e version="v1.0.3 705"/>
</startup>
</configuration>

Please have a try and let me know if this does the work for you.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
From: "Joe Reazor" <jo*******@belg or.com>
Subject: Possible Version Mismatch?
Date: Mon, 18 Aug 2003 09:16:05 -0400
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <O0************ **@TK2MSFTNGP10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.genera l
NNTP-Posting-Host: smtp.gorbel.com 216.42.134.6
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:104885
X-Tomcat-NG: microsoft.publi c.dotnet.genera l

I just upgraded to v1.1 of the framework and VS.Net 2003. I opened up oneof my solutions and rebuilt my project and all went well. I then ran my
project in debug mode. My program runs up fine, but then I try to open up
a
file that it typically works with, my program has custom serialization to

afile for work that users do. This has always worked in the past, as I

could
open and resave my files with no problems. Now I am unable to open these
files, that I had been working with in the previous .Net for well over 9
months. The error I get on deserialization says: "Possible Version
mismatch. Type System.Collecti ons.Comparer has 1 members, number of

members
deserialized is 0." To me this seems like something directly related to

the
Framework upgrade, although I'm not sure what the cause is or exactly how

to
fix it and some initial searching around has produced nothing. If anybodyhas any ideas, they would be greatly appreciated.

TIA

============ ==
Joe Reazor
Gorbel Inc.
email: joereaATgorbelD OTcom

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 19 '05 #3

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

Similar topics

1
3295
by: Ryan Jud Hughes | last post by:
I'm having trouble with python on MacOSX 10.3. I wrote an extension module, in C, and got it to compile and run just fine, in MacOSX 10.2, using the MacPython 2.3 package that I downloaded. But when I copied my stuff over to my computer that had MacOSX 10.3(.7), and the out-of-the-box MacPython 2.3 that comes installed with it, I can no longer use my extension module, or run any new ones that I compile. It appears to compile just fine...
0
1471
by: atulhi | last post by:
I've been having some problems with gyach, when trying to open the PyVoice chat portion of it. Following error is received ******************************************************************************* /usr/local/share/gyach/pyvoice/pytsp.py:2: RuntimeWarning: Python C API version mismatch for module pytspc: This Python has API version 1012, module pytspc has version 1011. import pytspc
11
8754
by: Jim | last post by:
Hi, I keep getting form results emailed to me that would indicate a form from my web site is getting submitted with all fields blank or empty, but my code should preventing users from proceeding if they left any field blank. My guess is that someone is trying to hack the site using the form to gain entry or run commands -- I don't really know since I'm not a hacker. I just know that forms are often susceptible to these kinds of...
1
2491
by: LJgrnl | last post by:
I've got a type mismatch error that's driving me nutty. Variable blnNoData has the initial value False. If a recordset comes back empty (both .EOF and ..BOF are true) then blnNoData is set to True. I then have an if statement to determine what to write to the screen depending on blnNoData. As long as the if statement is true (doesn't have to go to the else clause), the code runs fine. Otherwise, a type mismatch error is returned. In...
2
2611
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?
2
1290
by: Clark Sann | last post by:
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
2
253
by: Joe Reazor | last post by:
I just upgraded to v1.1 of the framework and VS.Net 2003. I opened up one of my solutions and rebuilt my project and all went well. I then ran my project in debug mode. My program runs up fine, but then I try to open up a file that it typically works with, my program has custom serialization to a file for work that users do. This has always worked in the past, as I could open and resave my files with no problems. Now I am unable to...
1
1416
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...
2
4286
by: Paul McNett | last post by:
Anyone have anything to suggest on this error: {{{ Traceback (most recent call last): File "shutter_studio.py", line 41, in <module> File "App.pyo", line 25, in <module> File "ui\__init__.pyo", line 23, in <module> File "ui\FrmProductionOrders.pyo", line 10, in <module> File "ui\PagEditProductionOrders.pyo", line 8, in <module> File "ui\GrdProductionOrderOpenings.pyo", line 5, in <module>
0
8888
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
8752
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
9401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
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...
0
9113
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3221
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
2635
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
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.