I get System.OutOfMemory exception while exporting large result set containing 1 million records to crystal report in ASP.Net. I get the datasource perfectly from database the problem occurs only when i set datasource for the report and load the report. The exception comes after sometime of setting datasource to the report. The error page does not contain stack trace and the line number in which error occurs. How to fix this issue?