PC Review


Reply
Thread Tools Rate Thread

BinaryFormatter Version incompatibility. Expected Version 1.0. Received Version 1986938170.1886350437

 
 
Joshua Moore
Guest
Posts: n/a
 
      27th May 2004
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 following error:


BinaryFormatter Version incompatibility. Expected Version 1.0. Received
Version 1986938170.1886350437.


I've read a lot about this error from several sources on the net, but can't
get a good solution or walkthrough to find out how to fix it.

This is my call stack:

System.Runtime.Serialization.Formatters.Binary.SerializationHeaderRecord.Rea
d(__BinaryParser input)


System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadSerializat
ionHeaderRecord()



System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()



System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(Head
erHandler handler, __BinaryParser serParser, Boolean fCheck,
IMethodCallMessage methodCallMessage)



System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(S
tream serializationStream, HeaderHandler handler, Boolean fCheck,
IMethodCallMessage methodCallMessage)



System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(S
tream serializationStream, HeaderHandler handler)



System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(S
tream serializationStream)


 
Reply With Quote
 
 
 
 
Alexander Muylaert
Guest
Posts: n/a
 
      27th May 2004
I'm not 100% sure, but when you write with a SoapFormatter, you should read
with a soapformatter.
When you write with a Binary formatter, read with one to.

Kind regards

Alexander

"Joshua Moore" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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 following error:
>
>
> BinaryFormatter Version incompatibility. Expected Version 1.0. Received
> Version 1986938170.1886350437.
>
>
> I've read a lot about this error from several sources on the net, but

can't
> get a good solution or walkthrough to find out how to fix it.
>
> This is my call stack:
>
>

System.Runtime.Serialization.Formatters.Binary.SerializationHeaderRecord.Rea
> d(__BinaryParser input)
>
>
>

System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadSerializat
> ionHeaderRecord()
>
>
>
> System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
>
>
>
>

System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(Head
> erHandler handler, __BinaryParser serParser, Boolean fCheck,
> IMethodCallMessage methodCallMessage)
>
>
>
>

System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(S
> tream serializationStream, HeaderHandler handler, Boolean fCheck,
> IMethodCallMessage methodCallMessage)
>
>
>
>

System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(S
> tream serializationStream, HeaderHandler handler)
>
>
>
>

System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(S
> tream serializationStream)
>
>



 
Reply With Quote
 
Joshua Moore
Guest
Posts: n/a
 
      27th May 2004
It writes with a SoapFormatter on the web service, but I don't have access
to a SoapFormatter, only a BinaryFormatter when not using a web service.
The point of the code is demo accessability without accessing the web
service.

Thanks.

"Alexander Muylaert" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm not 100% sure, but when you write with a SoapFormatter, you should

read
> with a soapformatter.
> When you write with a Binary formatter, read with one to.
>
> Kind regards
>
> Alexander
>
> "Joshua Moore" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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 following error:
> >
> >
> > BinaryFormatter Version incompatibility. Expected Version 1.0. Received
> > Version 1986938170.1886350437.
> >
> >
> > I've read a lot about this error from several sources on the net, but

> can't
> > get a good solution or walkthrough to find out how to fix it.
> >
> > This is my call stack:
> >
> >

>

System.Runtime.Serialization.Formatters.Binary.SerializationHeaderRecord.Rea
> > d(__BinaryParser input)
> >
> >
> >

>

System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadSerializat
> > ionHeaderRecord()
> >
> >
> >
> > System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
> >
> >
> >
> >

>

System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(Head
> > erHandler handler, __BinaryParser serParser, Boolean fCheck,
> > IMethodCallMessage methodCallMessage)
> >
> >
> >
> >

>

System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(S
> > tream serializationStream, HeaderHandler handler, Boolean fCheck,
> > IMethodCallMessage methodCallMessage)
> >
> >
> >
> >

>

System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(S
> > tream serializationStream, HeaderHandler handler)
> >
> >
> >
> >

>

System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(S
> > tream serializationStream)
> >
> >

>
>



 
Reply With Quote
 
Sherif ElMetainy
Guest
Posts: n/a
 
      28th May 2004
Hello

This is a common problem. Read about it here
http://www.thinktecture.com/Resource...NMISMATCH.html



Best regards,
Sherif

"Joshua Moore" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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 following error:
>
>
> BinaryFormatter Version incompatibility. Expected Version 1.0. Received
> Version 1986938170.1886350437.
>
>
> I've read a lot about this error from several sources on the net, but

can't
> get a good solution or walkthrough to find out how to fix it.
>
> This is my call stack:
>
>

System.Runtime.Serialization.Formatters.Binary.SerializationHeaderRecord.Rea
> d(__BinaryParser input)
>
>
>

System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadSerializat
> ionHeaderRecord()
>
>
>
> System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
>
>
>
>

System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(Head
> erHandler handler, __BinaryParser serParser, Boolean fCheck,
> IMethodCallMessage methodCallMessage)
>
>
>
>

System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(S
> tream serializationStream, HeaderHandler handler, Boolean fCheck,
> IMethodCallMessage methodCallMessage)
>
>
>
>

System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(S
> tream serializationStream, HeaderHandler handler)
>
>
>
>

System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(S
> tream serializationStream)
>
>



 
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
Re: Where to get stand alone Dot Net Framework version 1.1, version2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? MowGreen [MVP] Windows XP Help 6 12th Mar 2008 12:14 AM
Where to get stand alone Dot Net Framework version 1.1, version 2.0,version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? pg Windows XP General 11 9th Feb 2008 01:55 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? MowGreen [MVP] Microsoft ASP .NET 5 9th Feb 2008 01:55 AM
BinaryFormatter Version incompatibility. =?Utf-8?B?cmxyY3N0cg==?= Microsoft C# .NET 4 20th Sep 2006 08:30 PM
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.