Hi,
I have a .net application where number crystal reports are invoked and generated as PDF through ExportToHttpResponse function. On the current Windows server 2008, all reports are running fine with no problems. We are in the proccess to a newer version Windows Server 2012 R2. After deploying the crystal runtime 32bit on the new server, most of the reports are running with no issues; however some reports are giving NullReferenceException in the EromReportSourceBase.ExportToStream when running them in from the new server. I have compared almost all configuration in the old and new servers and ideally everything is the same. Just to add, the reports that are not working are expecting
DataTable as dataset in subreports.
Error:
[NullReferenceException: Object reference not set to an instance of an object.]
CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +1130
CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +649
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options) +98
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportOptions options, HttpResponse response, Boolean asAttachment, String attachmentName) +98
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportFormatType formatType, HttpResponse response, Boolean asAttachment, String attachmentName) +123
Error line:
report.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, false, "BPA_Report");
Thanks.
Abdullah