Excepción de informes de cristal: se ha alcanzado el límite máximo de trabajos de procesamiento de informes configurado por el administrador del sistema
Estoy enfrentando un problema muy defectuoso, en la aplicación ASP.NET después de ver el mismo informe muchas veces simultáneamente, recibí esta excepción:
Se ha alcanzado el límite máximo de trabajos de procesamiento de informes configurado por el administrador del sistema.
Espere, sé que hay toneladas de soluciones, pero todas ellas no funcionan conmigo.
Puse ReportDocument.Close (); ReportDocument.Dispose (); en el evento CrystalReportViewer_Unload, y aún arroja la excepción.
Private Sub CrystalReportViewer1_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles CrystalReportViewer1.Unload reportFile.Close() reportFile.Dispose() GC.Collect() End Sub
Edito el registro PrintJobLimit enHKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\InprocServer
yHKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\Server
a -1 incluso a 9999, y aún arroja la excepción.
Aquí está el fragmento de código donde llamo a mi informe:
Table_Infos = New TableLogOnInfos()
Table_Info = New TableLogOnInfo()
Con_Info = New ConnectionInfo()
With Con_Info
.ServerName = ConfigurationManager.AppSettings("server_name")
.DatabaseName = ConfigurationManager.AppSettings("DB")
.UserID = user_name
.Password = pass_word
.Type = ConnectionInfoType.SQL
.IntegratedSecurity = False
End With
Table_Info.ConnectionInfo = Con_Info
If Session("recpt_lang") = "Arabic" Then
reportFile.Load(Server.MapPath("/Reports/") & "collectrecpt_new_ar.rpt")
ElseIf Session("recpt_lang") = "English" Then
reportFile.Load(Server.MapPath("/Reports/") & "collectrecpt_new.rpt")
End If
For Each mytable In reportFile.Database.Tables
mytable.ApplyLogOnInfo(Table_Info)
Next
CrystalReportViewer1.ReportSource = reportFile
CrystalReportViewer1.SelectionFormula = Session("SelectionForumla")
CrystalReportViewer1 = Nothing