?
Solved

Crystal Reports maximum report processing jobs limit error

Posted on 2016-08-17
2
Medium Priority
?
65 Views
Last Modified: 2016-08-17
We have an ASP.NET C# 4.5 Application on a Windows Server 2012 server.  This is a new server for this application and we encountered this max job report error late into the first day of use. We have CR XI in place on the server.
We put a couple of lines in place to help cleanup the files. Does anyone have any suggestions on the code attached to help our cause?

 
            case "TravelerRpt":    
         NewTravelerRpt oTraveler = new NewTravelerRpt();
                    oTraveler.SetDataSource(Session["RptData"]);
                    CrystalReportViewer1.ReportSource = oTraveler;
                   

                    try
                    {
                       byte[] byteArray = null;

                       
                        var xStream = oTraveler.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
                       
                        byteArray = new byte[xStream.Length];
                        xStream.Read(byteArray, 0, Convert.ToInt32(xStream.Length - 1));
                        Response.ClearContent();
                        Response.ClearHeaders();
                        Response.ContentType = "application/pdf";
                        Response.BinaryWrite(byteArray);
                        Response.Flush();
                        Response.Close();
                        CrystalReportViewer1.Visible = true;
                       

               
                    }

                    catch (Exception ex)
                    {
                        this.txtError.Text = ex.ToString();
                        this.txtError.Visible = true;
                    }
                    finally
                    {
                        oTraveler.Dispose();
                        Session["ReportData"] = null;
                    }
                   
                    break;
0
Comment
Question by:ITMikeK
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:ITMikeK
ID: 41759874
Is this being handled enough in the code I provided?
0
 
LVL 18

Accepted Solution

by:
vasto earned 2000 total points
ID: 41759887
You need to close the report before to dispose it.
finally
                    {
                        oTraveler.Close();
                        oTraveler.Dispose();
                        Session["ReportData"] = null;
                    }
0

Featured Post

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question