Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

System.OutOfMemoryException using linq C#

$
0
0

Hi All,

Please resolve this issue .  

It contains around 30000 records. When grouping using Linq to list. It throws error of System.OutOfMemoryException

var resultdt = dt.GroupBy(test => new { test.CompanyName, test.MainTelNumber, test.Address, test.Address2, test.City, test.State, test.ZipCode, test.EventCity, test.JobCategory, test.WebsiteURL, test.EventState })
.Select(grp => grp.First())
.ToList();




Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>