Possible Version Mismatch?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joe Reazor

    #1

    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


  • Peter Huang [MSFT]

    #2
    RE: Possible Version Mismatch?

    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.

    --------------------[color=blue]
    >From: "Joe Reazor" <joenospam@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#8IrYZDHA.22 36@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[/color]
    a[color=blue]
    >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[/color]
    could[color=blue]
    >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[/color]
    members[color=blue]
    >deserialized is 0." To me this seems like something directly related to[/color]
    the[color=blue]
    >Framework upgrade, although I'm not sure what the cause is or exactly how[/color]
    to[color=blue]
    >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
    >
    >
    >[/color]


    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.

    Comment

    • Joe Reazor

      #3
      Re: Possible Version Mismatch?

      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-phuang@online.m icrosoft.com> wrote in message
      news:33fnwUmZDH A.1996@cpmsftng xa06.phx.gbl...[color=blue]
      > 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[/color]
      follows.[color=blue]
      > 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[/color]
      configueration[color=blue]
      > 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[/color]
      files[color=blue]
      > 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.
      >
      > --------------------[color=green]
      > >From: "Joe Reazor" <joenospam@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#8IrYZDHA.22 36@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[/color][/color]
      one[color=blue][color=green]
      > >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[/color][/color]
      up[color=blue]
      > a[color=green]
      > >file that it typically works with, my program has custom serialization to[/color][/color]
      a[color=blue][color=green]
      > >file for work that users do. This has always worked in the past, as I[/color]
      > could[color=green]
      > >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[/color]
      > members[color=green]
      > >deserialized is 0." To me this seems like something directly related to[/color]
      > the[color=green]
      > >Framework upgrade, although I'm not sure what the cause is or exactly how[/color]
      > to[color=green]
      > >fix it and some initial searching around has produced nothing. If[/color][/color]
      anybody[color=blue][color=green]
      > >has any ideas, they would be greatly appreciated.
      > >
      > >TIA
      > >
      > >============ ==
      > >Joe Reazor
      > >Gorbel Inc.
      > >email: joereaATgorbelD OTcom
      > >
      > >
      > >[/color]
      >
      >
      > 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.
      >[/color]


      Comment

      Working...