473,385 Members | 1,736 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,385 software developers and data experts.

BinaryFormatter Version incompatibility.

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.
Sep 20 '06 #1
4 2232
rlrcstr <rl*****@discussions.microsoft.comwrote:
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
Sep 20 '06 #2
Nope. I'm running them on the same machine as I develop them.

"Thomas T. Veldhouse" wrote:
rlrcstr <rl*****@discussions.microsoft.comwrote:
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
Sep 20 '06 #3
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" <ve*****@yahoo.comwrote in message
news:Rn****************@textfe.usenetserver.com...
rlrcstr <rl*****@discussions.microsoft.comwrote:
>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


Sep 20 '06 #4
rl*****@newsgroups.nospam 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
Sep 20 '06 #5

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

Similar topics

6
by: Plumer | last post by:
Good morning everyone, I am having difficulty distributing a Release version of an application. System info C# DOTNET, MDE 2002, Version 7.0.9466 .Net Framework, version 1.0.3705 My...
5
by: aladdinm1 | last post by:
Hi All, I have an annoying trouble with binary serialization. I have a windows forms application which works like a server and keeps sending data to its clients. The data is serialized before...
3
by: Joshua Moore | last post by:
I have a webservice that serializes a ton of variables and other good stuff to a txt file using SoapFormatter (IFormatter), and when I try to deserialize it using the binary formatter, i get the...
11
by: Igor | last post by:
Hi. While executing BinaryFormatter.Deserialize() I get: System.InvalidCastException: Specified cast is not valid. I implemented ISerializable interface. What may be a problem? Thanks.
2
by: Henrik Skak Pedersen | last post by:
Hello, I have a class which is beeing serialized/deserialized using the BinaryFormatter class. That has been working with no problems until I signed all my assemblies. Now I get a...
1
by: pak20116 | last post by:
Hi, all: I've seen numerous questions and answers about this topic on the web, but none of them quite fit to my case. My application is a business process model (like approval process) using...
0
by: Fruber Malcome | last post by:
I'm getting a very weird exception and hoping someone may be able to help. I have an Office Add-In that lives in a .dll (for email reference ai.dll) ai.dll makes calls into the core part of the...
2
by: Doug Lind | last post by:
Hi all, I have seen a number of posts re: the BinaryFormatter version incompatibility but nothing on how to recover from it. In my case, I want the exception to trigger an alternate behaviour...
2
by: Lambuz | last post by:
Hi all, I'm triying to create a prototype of a smart client that using .NET Remoting. I've got an assembly loaded into an HTML page by a tag object <OBJECT id="myID" height="150" width="300"...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...

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.