Я столкнулся с очень ошибочной проблемой, в приложении ASP.NET после просмотра одного и того же отчета много раз одновременно я получил это исключение:
Максимальная обработка отчета лимит заданий, настроенный вашей системой дозвонился до администратора.
Подождите, я знаю, что существует множество решений, но все они не работают со мной.
Я поставил ReportDocument.Close(); ОтчетДокумент.Утилизировать(); в событии CrystalReportViewer_Unload и по-прежнему выдает исключение.
Private Sub CrystalReportViewer1_Unload(ByVal sender As Object, ByVal e As System.EventArgs) обрабатывает CrystalReportViewer1.Unload
файл отчета.Закрыть()
файл отчета.Dispose()
GC.Собрать()
End Sub
Я редактирую реестр PrintJobLimit в HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports для .NET Framework 4.0\Report Application Server\InprocServer
и HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports для .NET Framework 4.0\Report Application Server\Server
до -1, даже до 9999, и все равно выдавать исключение.
Вот фрагмент кода, в котором я называю свой отчет:
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