Hello,
I have an issue with respect to the DataSet Merge function. I have a
function defined that takes a dataset as a parameter and is called in two
different scenarios, locally and remotely. Inside this function I do the
following:
DataSet dsModified = ds.GetChanges(DataRowState.Modified);
if (dsModified != null)
{
// ... Update the database
ds.Merge(dsModified)
}
If I call this function locally, it works perfectly. However, if this
function is called remotely for the exact same scenario, the function throws
an exception when Merge is called. The only difference in the two calls is
that locally, the dataset is passed by reference (because it's an object),
whereas remotely, the same dataset is serialized before it is passed into
the function. Are there any known issues with respect to serialization of a
dataset? That is the only thing that I can think of that is causing this
ConstraitException to be thrown.
Thanks,
Hammad
|