Memory card overflow Crystal Report Error message every so often

0

I have implemented a web with IIS7, VS 2015 community which has a report generation method that receives a parameter ... it responds correctly, for a certain time, then it generates an error "There is not enough memory for the operation "

I am new and I have no idea how to approach the solution The code generated by the pdf is:

 public void Reporteador(string id)
    {
        ReportDocument rd = new ReportDocument();
try
        {
        string strRptPath = System.Web.HttpContext.Current.Server.MapPath("~/") + "Ruta_Reporte/Informe.rpt";
        rd.Load(strRptPath);
    rd.SetParameterValue("orden", _orden);
    rd.ExportToHttpResponse(ExportFormatType.PortableDocFormat, System.Web.HttpContext.Current.Response, false, _orden + "_ReporteOrden.pdf");
    rd.Close();
        rd.Dispose();
    }   
        catch (Exception ex)
        {
            rd.Close();
            rd.Dispose();
            Response.Write(ex.ToString());
        }
        finally {
            rd.Close();
            rd.Dispose();

        }

}

I try to kill the connection but it seems to continue filling buffer and generates the dump. Thanks for the help.

    
asked by Féliz Gómez Araníbar 09.03.2018 в 18:50
source

0 answers