title: Load report failed. at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
body: <p>When we were running reports in .NET 3.5 there was no problem. As we moved to .NET 4.5 and upgraded Crystal to these versions:</p>
  
  <ul>
  <li><a href="http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_5.exe" rel="nofollow">http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_5.exe</a></li>
  <li><a href="http://downloads.businessobjects.com/akdlm/crnetruntime/clickonce/CRRuntime_32bit_13_0_3.msi" rel="nofollow">http://downloads.businessobjects.com/akdlm/crnetruntime/clickonce/CRRuntime_32bit_13_0_3.msi</a>)</li>
  </ul>
  
  <p>We keep getting this error:</p>
  
  <pre><code>Load report failed.
  at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
  at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
  at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
  at AppSuite.WebApp.CrystalViewer.LoadReport(Boolean bRefresh)
  at AppSuite.WebApp.CrystalViewer.Page_Load(Object sender, EventArgs e)
  at System.Web.UI.Control.OnLoad(EventArgs e)
  at System.Web.UI.Control.LoadRecursive()
  at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  </code></pre>
  
  <p>The maximum report processing jobs limit configured by your system administrator has been reached.</p>
  
  <pre><code>at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object&amp; DocumentPath, Int32 Options)
  at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object&amp; DocumentPath, Int32 Options)
  at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
  </code></pre>
  
  <p>The dispose method is called in the code so i don't think that's causing problem:</p>
  
  <pre class="lang-vb prettyprint-override"><code>Private oReportDocument As New ReportDocument
  
  Private Sub LoadReport(ByVal bRefresh As Boolean)
  
      'Get the report data
      Dim dtReport As DataTable = ReportHelper.GetReportData(Me.CacheKey, bRefresh)
  
      'If there is data to display bind it to the Crystal Viewer
      If dtReport.Rows.Count &gt; 0 Then
          With oReportDocument
              .Load(ReportHelper.GetReportPath(Me.ReportId))
              .SetDataSource(dtReport)
              .PrintOptions.PaperSize = Common.Settings.CrystalPaperSize
          End With
          crvMain.ReportSource = oReportDocument
      Else
          'Hide the controls and display a message if there is no data
          crvMain.Visible = False
          btnPDF.Visible = False
          btnExcel.Visible = False
          lblNoResults.Visible = True
      End If
  
  End Sub
  
  Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload
      oReportDocument.Dispose()
  End Sub
  </code></pre>
  
  <p>ASPX part</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;CR:CRYSTALREPORTVIEWER id="crvMain"  HasPrintButton="False" HasExportButton="False" 
      runat="server" ToolPanelView="None" BorderColor="Transparent" BorderStyle="None"
      Height="50px" Width="350px" HasRefreshButton="True" HasCrystalLogo="False" 
      HasToggleGroupTreeButton="False" meta:resourcekey="crvMainResource1"&gt;&lt;/CR:CRYSTALREPORTVIEWER&gt;
  </code></pre>
  
  <p>Changing the <code>PrintJobLimit = -1</code> in registry did not solve the problem. </p>
  
  <p>Do we need to buy the full version of crystal reports or there is something else that's causing this issue?</p>