Click here to Skip to main content
15,795,331 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my problem is i am trying to load the crystal report but getting the above errors after i load 200-300 reports successfully .how come i get the Load report failed" error after 200-300 reports loaded successfully. is it because of application pool size pls reply i have tried all the possible solutions.
Posted
Comments
ZurdoDev 17-Jun-14 8:53am    
You would have to post the relevant code for us to know for sure.

We must clean up the unmanaged resources(ReportDocument object) used in the page like below.

C#
if(rptDocObj != null)
  {
    rptDocObj.Close();
    rptDocObj.Dispose();
  }
 
Share this answer
 
You can use unload methods to overcome this problems
use

C#
protected void crvAppCredit_Unload(object sender, EventArgs e)
    {
        ReportDocumentName.Close();
        ReportDocumentName.Dispose();
        CrystalReportViewerName.Dispose();
    }
    protected void Page_Unload(object sender, EventArgs e)
    {
        ReportDocumentName.Close();
        ReportDocumentName.Dispose();
        CrystalReportViewerName.Dispose();
    }


and simply use crystalreportviewer's
C#
OnUnload="CrystalReportViewerName_Unload"
property to call crystal report unload event
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900