Need help resolving an error when WCF service returns DataTable: OutOfMemoryException
问题 I have a WCF service running that is attempting to return a DataTable . The service method uses a SqlDataReader , and then uses DataTable.Load() to get that data into the DataTable it intends to return. Problem: when the service method returns a large table (I'll define this in a moment), I get these exceptions in the debug output (they do not cripple the service): A first chance exception of type 'System.OutOfMemoryException' occurred in SMDiagnostics.dll A first chance exception of type