PC Review


Reply
Thread Tools Rate Thread

BinaryFormatter Version incompatibility.

 
 
=?Utf-8?B?cmxyY3N0cg==?=
Guest
Posts: n/a
 
      20th Sep 2006
I'm getting an annoying exception: BinaryFormatter Version incompatibility.
Expected Version 1.0. Received Version XXXX

I've looked all over the web and everything that discusses this seems to be
associated with web services. Usually indicating that the code is mismatched
with BinaryFormatter and SOAPFormatter objects. Stressing that if you use a
BinaryFormatter on one side you must use one on the other.

Well, I'm only using binary. And I'm not writing a web service. This is a
WinForms app that tries to use serialization to send objects over a tcp
connection. Everything works fine for a while. Then I get the exception. I
can tell if it has to do with the amount of data sent, or the time running,
or what... Seems to happen randomly.

Any thoughts would be greatly appreciated.
 
Reply With Quote
 
 
 
 
Thomas T. Veldhouse
Guest
Posts: n/a
 
      20th Sep 2006
rlrcstr <(E-Mail Removed)> wrote:
> I'm getting an annoying exception: BinaryFormatter Version incompatibility.
> Expected Version 1.0. Received Version XXXX
>
> I've looked all over the web and everything that discusses this seems to be
> associated with web services. Usually indicating that the code is mismatched
> with BinaryFormatter and SOAPFormatter objects. Stressing that if you use a
> BinaryFormatter on one side you must use one on the other.
>
> Well, I'm only using binary. And I'm not writing a web service. This is a
> WinForms app that tries to use serialization to send objects over a tcp
> connection. Everything works fine for a while. Then I get the exception. I
> can tell if it has to do with the amount of data sent, or the time running,
> or what... Seems to happen randomly.
>
> Any thoughts would be greatly appreciated.


Any chance the .NET version is different on the server side of the connection
than it is on the client side?

--
Thomas T. Veldhouse
Key Fingerprint: 2DB9 813F F510 82C2 E1AE 34D0 D69D 1EDC D5EC AED1


 
Reply With Quote
 
=?Utf-8?B?cmxyY3N0cg==?=
Guest
Posts: n/a
 
      20th Sep 2006
Nope. I'm running them on the same machine as I develop them.

"Thomas T. Veldhouse" wrote:

> rlrcstr <(E-Mail Removed)> wrote:
> > I'm getting an annoying exception: BinaryFormatter Version incompatibility.
> > Expected Version 1.0. Received Version XXXX
> >
> > I've looked all over the web and everything that discusses this seems to be
> > associated with web services. Usually indicating that the code is mismatched
> > with BinaryFormatter and SOAPFormatter objects. Stressing that if you use a
> > BinaryFormatter on one side you must use one on the other.
> >
> > Well, I'm only using binary. And I'm not writing a web service. This is a
> > WinForms app that tries to use serialization to send objects over a tcp
> > connection. Everything works fine for a while. Then I get the exception. I
> > can tell if it has to do with the amount of data sent, or the time running,
> > or what... Seems to happen randomly.
> >
> > Any thoughts would be greatly appreciated.

>
> Any chance the .NET version is different on the server side of the connection
> than it is on the client side?
>
> --
> Thomas T. Veldhouse
> Key Fingerprint: 2DB9 813F F510 82C2 E1AE 34D0 D69D 1EDC D5EC AED1
>
>
>

 
Reply With Quote
 
Guest
Posts: n/a
 
      20th Sep 2006
And the error is not consistent. Seems to occur maybe after a certain
amount of data, o rmaybe if the data is too large, or if it come to fast,
maybe... I can't quite figure it out...

Jerry

"Thomas T. Veldhouse" <(E-Mail Removed)> wrote in message
news:RnfQg.1753$(E-Mail Removed)...
> rlrcstr <(E-Mail Removed)> wrote:
>> I'm getting an annoying exception: BinaryFormatter Version
>> incompatibility.
>> Expected Version 1.0. Received Version XXXX
>>
>> I've looked all over the web and everything that discusses this seems to
>> be
>> associated with web services. Usually indicating that the code is
>> mismatched
>> with BinaryFormatter and SOAPFormatter objects. Stressing that if you
>> use a
>> BinaryFormatter on one side you must use one on the other.
>>
>> Well, I'm only using binary. And I'm not writing a web service. This is
>> a
>> WinForms app that tries to use serialization to send objects over a tcp
>> connection. Everything works fine for a while. Then I get the
>> exception. I
>> can tell if it has to do with the amount of data sent, or the time
>> running,
>> or what... Seems to happen randomly.
>>
>> Any thoughts would be greatly appreciated.

>
> Any chance the .NET version is different on the server side of the
> connection
> than it is on the client side?
>
> --
> Thomas T. Veldhouse
> Key Fingerprint: 2DB9 813F F510 82C2 E1AE 34D0 D69D 1EDC D5EC AED1
>
>



 
Reply With Quote
 
Thomas T. Veldhouse
Guest
Posts: n/a
 
      20th Sep 2006
(E-Mail Removed)am wrote:
> And the error is not consistent. Seems to occur maybe after a certain
> amount of data, o rmaybe if the data is too large, or if it come to fast,
> maybe... I can't quite figure it out...
>


I suspect that your data is corrupt comming off the TCP stream.


--
Thomas T. Veldhouse
Key Fingerprint: 2DB9 813F F510 82C2 E1AE 34D0 D69D 1EDC D5EC AED1


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Version Incompatibility JUnk Microsoft Excel Programming 1 4th Aug 2005 03:42 PM
BinaryFormatter Version mismatch =?Utf-8?B?cGFrMjAxMTY=?= Microsoft Dot NET Framework 8 25th May 2005 04:04 PM
BinaryFormatter version mismatch =?Utf-8?B?cGFrMjAxMTY=?= Microsoft C# .NET 1 24th May 2005 04:43 PM
BinaryFormatter Version incompatibility. Expected Version 1.0. Received Version 1986938170.1886350437 Joshua Moore Microsoft C# .NET 3 28th May 2004 02:45 AM
Serialization and BinaryFormatter version incompatibility exceptions Doug Lind Microsoft VB .NET 2 16th Sep 2003 07:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:47 AM.