473,383 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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.Collections.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: joereaATgorbelDOTcom
Jul 19 '05 #1
2 3820
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:
<configuration>
<startup>
<requiredRuntime version="v1.1.4322"/>
</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:
<configuration>
<startup>
<requiredRuntime version="v1.0.3705"/>
</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*******@belgor.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.public.dotnet.general
NNTP-Posting-Host: smtp.gorbel.com 216.42.134.6
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:104885
X-Tomcat-NG: microsoft.public.dotnet.general

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.Collections.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: joereaATgorbelDOTcom

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 SurrogateSelector, but
hopefully MS comes out with a fix too.
==============
Joe Reazor
Gorbel Inc.
email: joereaATgorbelDOTcom
"Peter Huang [MSFT]" <v-******@online.microsoft.com> wrote in message
news:33**************@cpmsftngxa06.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:
<configuration>
<startup>
<requiredRuntime version="v1.1.4322"/>
</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:
<configuration>
<startup>
<requiredRuntime version="v1.0.3705"/>
</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*******@belgor.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.public.dotnet.general
NNTP-Posting-Host: smtp.gorbel.com 216.42.134.6
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:104885
X-Tomcat-NG: microsoft.public.dotnet.general

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.Collections.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: joereaATgorbelDOTcom

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
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...
0
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 ...
11
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...
1
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...
2
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:...
2
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 /...
2
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,...
1
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...
2
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.