Download PDF ERR_TOO_MANY_REDIRECTS
Posted: Sat Sep 02, 2017 11:48 pm
Hi, team.
My site is Asp Net MVC 5 with AspNet Identity and my Stimulsoft is 2015.1.0.
In my localhost the download PDF file is working fine,
But in web (deployed) the PDF file Download not work (ERR_TOO_MANY_REDIRECTS). The viewer works.
The site is ssl (my localhost too)
The code:
public FileResult ExportReport()
{
var report = StiMvcViewerFx.GetReportObject(this.Request);
StiPdfExportService service = new StiPdfExportService();
StiPdfExportSettings settings = new StiPdfExportSettings();
settings.ImageQuality = 0.75f; // 0.95f;
settings.ImageResolution = 096.0f; // 300.0f;
MemoryStream stream = new MemoryStream();
service.ExportPdf(report, stream, settings);
return File(stream.ToArray(), "application/pdf", "Report.pdf");
}
I need help.
Thanks
Paulo Mussolini
My site is Asp Net MVC 5 with AspNet Identity and my Stimulsoft is 2015.1.0.
In my localhost the download PDF file is working fine,
But in web (deployed) the PDF file Download not work (ERR_TOO_MANY_REDIRECTS). The viewer works.
The site is ssl (my localhost too)
The code:
public FileResult ExportReport()
{
var report = StiMvcViewerFx.GetReportObject(this.Request);
StiPdfExportService service = new StiPdfExportService();
StiPdfExportSettings settings = new StiPdfExportSettings();
settings.ImageQuality = 0.75f; // 0.95f;
settings.ImageResolution = 096.0f; // 300.0f;
MemoryStream stream = new MemoryStream();
service.ExportPdf(report, stream, settings);
return File(stream.ToArray(), "application/pdf", "Report.pdf");
}
I need help.
Thanks
Paulo Mussolini