FIX: Null Values Are Returned for Fabricated DataColumns When a DataSet Is Deserialized from a DiffGram (325697)
The information in this article applies to:
- Microsoft ADO.NET (included with the .NET Framework)
This article was previously published under Q325697 SYMPTOMS When you deserialize an ADO.NET DataSet from XML in the DiffGram format, null values are returned for
fabricated DataColumns whose values are computed by using aggregate functions
with expressions that reference columns in a child DataTable. The DiffGram XML format is the default format that is used to
serialize ADO.NET DataSet objects across process boundaries. ASP.NET Web Service and
Microsoft .NET Remoting clients might experience this behavior when they
consume (that is, deserialize) and access the data in a DataSet that a server component serializes and returns as a DiffGram.
CAUSE When you deserialize a DataSet from XML in the DiffGram format, fabricated column values in a DataTable that are computed by using columns in a child DataTable are not recalculated. RESOLUTION Two workarounds are available:
- After the DataSet is returned, call the BeginEdit and the EndEdit methods on the DataTable.
- Serialize or persist the DataSet as XML without using the DiffGram format.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
This bug was corrected in Microsoft ADO.NET
(included with the .NET Framework 1.1).
Modification Type: | Major | Last Reviewed: | 10/31/2003 |
---|
Keywords: | kbfix kbbug kbpending KB325697 |
---|
|