PC Review


Reply
Thread Tools Rate Thread

BinaryFormatter fails to correctly serialize/deserialize dataset

 
 
news.tweakdsl.nl
Guest
Posts: n/a
 
      1st Aug 2003
I encountered the following problem in my case where I call a function over
..NET remoting and passing thru a DataSet as a parameter:

The BinaryFormatter fails to correctly serialize/deserialize the rows of a
table if in a table 2 rows exists, one with DataRowState value Added en one
with the value Deleted but both rows having the same key value.

The reason I need this is because I have a Parent/Child relation in which I
first delete two rows from the Parent table (and the Child rows are
automatically deleted) and then add two new rows into the Parent table and
new rows in the Child table. But the rows I add in the Child table have the
same key as the one I have already deleted. Clientside the DataSet correctly
represents the situation, but ServerSide (after going thru .NET remoting)
the inserted rows are lost, I need those rows serverside to correctly update
the database.

Has anyone encountered the same problem ? Is it really a bug (i think so
because the BinaryFormatter doesn't deserialize the same class as it
serializes).

Greetings,

Yussef Alkhamrichi


 
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
Serialize & Deserialize Dataset nightshadz Microsoft VB .NET 2 16th Jan 2009 04:39 PM
BinaryFormatter.Deserialize fails when used with .net ActiveX =?Utf-8?B?YWxhZGRpbm0x?= Microsoft Dot NET 5 27th Sep 2005 04:01 PM
BinaryFormatter.Deserialize after signing of assembly fails Henrik Skak Pedersen Microsoft Dot NET Framework 3 28th Jan 2005 10:23 AM
BinaryFormatter.Deserialize after signing of assembly fails Henrik Skak Pedersen Microsoft C# .NET 2 27th Jan 2005 05:59 PM
Question on BinaryFormatter Serialize/Deserialize Fred Heida Microsoft C# .NET 0 28th Jul 2004 01:23 AM


Features
 

Advertising
 

Newsgroups
 


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