System.Runtime.Serialization.SerializationException

G

Guest

I am trying to write an app that uses serialization however I'm getting an
error 'System.Runtime.Serialization.SerializationException occurred in
mscorlib.dll

Additional information: BinaryFormatter Version incompatibility. Expected
Version 1.0 Received Version 1008738336.1684104552.

Can somebody help me on this?
 
R

Richard Blewett [DevelopMentor]

You are using the Binary formatter and deploying under ASP.NET is my guess. The problem is that the web server is returning an error (in the form of HTML) and the binary formatter tries to interpret this as a binary packet - hence the weird version number. I wrote a channel sink to help diagnose these poroblems [1]

[1] http://www.dotnetconsult.co.uk/weblog/PermaLink.aspx/827189d3-ee0e-444f-b01d-bf9ce9f70f5c

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

Hi,

Are you using Remoting ? It seems a incompatible formatter e.g. The client
is sending a Binary Formatted message, whereas the System is using a Soap
formatter. See more scenarios and their solution in
http://www.dotnet247.com/247reference/msgs/58/291433.aspx

regards
Joyjit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top