locked
Sometimes IIS Restart Needed to generate crystal reports in my asp.net application RRS feed

  • Question

  • User-2024558251 posted

    Hi All

    sometimes I am facing this problem during crystal report generation in my asp.net production server. It remain Hanged when try to generate. after long time it shows error message. afterb restart IIS it starts working properly. following are code to view reports in my web page.

     _objReportDocument = new ReportDocument();
     _objReportDocument("My Report.rpt");
                    
                    System.IO.MemoryStream ms;
                    ms = (System.IO.MemoryStream)crReportDocument.ExportToStream (CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
                    Response.Clear();
                    Response.ClearContent();
                    Response.ClearHeaders();
                    Response.Buffer = true;
                    Response.ContentType = "application/Pdf";
                    Response.BinaryWrite(ms.ToArray());
                    Response.Flush();
                    Response.End();               
                    ms.Dispose(); 

    I Configured IIS Recycling option In my Application Server.  

    I noticed when This scenario occured one of w3wp.exe process shows 100% memory used and not recycling properly.

    Thursday, June 16, 2011 12:35 AM

Answers

  • User1196771204 posted

    have you tried to deploy it to a server?

    If your server has no crystal report installed, you will not be able to run the reports

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 16, 2011 4:18 AM

All replies

  • User-1322853079 posted

    that should be issue of the crystal reports setup installed on ur machine.., check the version of the crystal reports,

    Make sure whether you are using the licensed version of crystal reports...

    Thursday, June 16, 2011 12:45 AM
  • User-2024558251 posted

    thanks suresh.

    in my development machine i am using Crystal Report XI R2. I Used Embadded Merge Module to prepare setup of my project and deployed in Server.

    In server (Windows 2008 enterprise edition) there is no crystal report Installed.

    My Application was bult on Asp.net 2.0.

     

    Thursday, June 16, 2011 12:58 AM
  • User1196771204 posted

    have you tried to deploy it to a server?

    If your server has no crystal report installed, you will not be able to run the reports

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 16, 2011 4:18 AM