Wednesday, 29 August 2007

Dataset serialization shuffles tables

Yes, another serialization problem.

We have defined a BIG dataset, then we create a instance of it. In a certain portion of the code, we serialize it with a binary formatter, but ... surprise when we deserialize, the tables order doesn't match!

Well, so far I haven't had much time to investigate, but setting the remoting format to binary does the trick:

ProcessDataSet.RemotingFormat = SerializationFormat.Binary

No comments: