title: Crystal Report exceed Processing Jobs Limit
body: <pre><code>protected void Page_Load(object sender, EventArgs e)
      {
          Response.Clear();
          Response.Buffer = true;
          if (IsPostBack)
          {
              if (dllselection.SelectedValue == "3")
              {
                  ReportDocument myDataReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
                  myDataReport.Load(Server.MapPath("OJT.rpt"));
                  myDataReport.SetDatabaseLogon("intranet", "cpgintranet@2016", "192.168.2.5", "INTRANET");
                  myDataReport.SetParameterValue("T-ID", TextBox1.Text);
                  CrystalReportViewer1.ReportSource = myDataReport;
                  CrystalReportViewer1.DataBind();
  
              }
              else if (dllselection.SelectedValue == "4")
              {
                  ReportDocument myDataReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
                  myDataReport.Load(Server.MapPath("TEFF.rpt"));
                  myDataReport.SetDatabaseLogon("intranet", "cpgintranet@2016", "192.168.2.5", "INTRANET");
                  myDataReport.SetParameterValue("T-ID", TextBox1.Text);
                  CrystalReportViewer1.ReportSource = myDataReport;
                  CrystalReportViewer1.DataBind();
  
  
              }
          }
      }
  
   protected void Button1_Click(object sender, EventArgs e)
      {
          Response.Clear();
          Response.Buffer = true;
  if (dllselection.SelectedValue == "3")
              {
                  ReportDocument myDataReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
                  myDataReport.Load(Server.MapPath("OJT.rpt"));
                  myDataReport.SetDatabaseLogon("intranet", "abc@2016", "192.168.2.88", "INTRANET");
                  myDataReport.SetParameterValue("T-ID", TextBox1.Text);
                  CrystalReportViewer1.ReportSource = myDataReport;
                  CrystalReportViewer1.DataBind();
  
              }
              else if (dllselection.SelectedValue == "4")
              {
                  ReportDocument myDataReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
                  myDataReport.Load(Server.MapPath("TEFF.rpt"));
                  myDataReport.SetDatabaseLogon("intranet", "abc@2016", "192.168.2.88", "INTRANET");
                  myDataReport.SetParameterValue("T-ID", TextBox1.Text);
                  CrystalReportViewer1.ReportSource = myDataReport;
                  CrystalReportViewer1.DataBind();
  
  
              }
  }
  </code></pre>
  
  <p>i am getting error : </p>
  
  <blockquote>
    <p>The maximum report processing jobs limit configured by your system
    administrator has been reached."</p>
  </blockquote>
  
  <p>Having researched the topic online I found some solution,set registry value, specifically <code>HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Report Application Server\InprocServer\PrintJobLimit</code> to "-1" ,but this solution is not working,if I adding crystal report dispose and close function in my code,the crystal report I generated will be empty.
  Below are my aspx code:</p>
  
  <pre><code>&lt;asp:DropDownList ID="dllselection"  onchange="javascript:return dropdown(this);" runat="server" Style="border: groove" CssClass="form-control" AutoPostBack="true"&gt;
                      &lt;asp:ListItem Text="On Job Training" Value="3"&gt;&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Text="Training Effectiveness Form" Value="4"&gt;&lt;/asp:ListItem&gt;
                  &lt;/asp:DropDownList&gt;
  &lt;asp:Button ID="Button1" runat="server" Text="Generate" CssClass="btn btn-success" OnClick="Button1_Click" /&gt;
          &lt;div id="dvReport"&gt;
              &lt;CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" ToolPanelView="None" EnableDatabaseLogonPrompt="False" PrintMode="Pdf" /&gt;
          &lt;/div&gt;
  </code></pre>