var ResultSet = from ResultsConcatString in ResultsTable.AsEnumerable()
join ResultsByMaxDate in concatTable.AsEnumerable()
on
new
{
KEY1 = ResultsConcatString.Field
KEY2 = ResultsConcatString.Field
}
equals
new
{
KEY1 = ResultsByMaxDate.Field
KEY2 = ResultsByMaxDate.Field
}
select new
{
STANDARD_VERSION = ResultsByMaxDate.Field
WRITE_TIME = ResultsByMaxDate.Field
IDENTIFICATION = ResultsByMaxDate.Field
REVISION = ResultsByMaxDate.Field
SERIAL_NUMBER = ResultsByMaxDate.Field
};

SenthilkumarRank #387 · 6.5K reputationPosted Apr 18, 2012, 8:31 PM EDT
I am not sure about exactly what is the problem.
But i think problem with the size of the data stored in the dataset and when it does for serialize and deserialize then problem comes.
If you run in the 32-bit then you may face this problem. I do not think you will have similar kind of problem with 64-bit.
Please see the similar kind of problems and solutions.
http://blogs.msdn.com/b/tess/archive/2008/09/02/outofmemoryexceptions-while-remoting-very-large-datasets.aspx
http://our.componentone.com/groups/winforms/chart-for-winforms/forum/topic/system-out-of-memory-exception-with-large-data-set/
David SmithRank #999 · 2K reputationPosted Apr 18, 2012, 9:22 PM EDT
SenthilkumarRank #387 · 6.5K reputationPosted Apr 19, 2012, 1:06 AM EDT
Here problem is not relative to the hard disk. Because the dataset is memory representation and related to the asp.net worker process where it consumes the memory of RAM.
Sam HobbsRank #107 · 20.5K reputationPosted Apr 19, 2012, 5:02 PM EDT
Are you sure you are getting the error from that statement? LINQ often delays execution until later.
Try using try/catch. There might be some other error that your program does not respond to.
David SmithRank #999 · 2K reputationPosted Apr 19, 2012, 6:20 PM EDT