I have some reports embedded in my web forms application. They work fine, and the reports are produced when the parameters are entered, and they also export fine to various formats such as PDF or Excel, but when I try to export to Rich Text Format I get the following error:
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Telerik.Reporting.RtfRendering.Table.RenderingElementCollection..ctor(RenderingElementContainer owner) +193
Telerik.Reporting.RtfRendering.Table.RenderingElementContainer..ctor(ProcessingElement processingElement) +73
Telerik.Reporting.RtfRendering.Table.Report..ctor(Report processingReport) +37
Telerik.Reporting.RtfRendering.Table.RenderingElementFactory.CreateItem(LayoutElement processingElement) +176
Telerik.Reporting.RtfRendering.Table.RenderingElementCollection..ctor(RenderingElementContainer owner) +217
Telerik.Reporting.RtfRendering.Table.RenderingElementContainer..ctor(ProcessingElement processingElement) +73
Telerik.Reporting.RtfRendering.Table.SubReport..ctor(SubReport processingSubReport) +36
Telerik.Reporting.RtfRendering.Table.RenderingElementFactory.CreateItem(LayoutElement processingElement) +1244
Telerik.Reporting.RtfRendering.Table.RenderingElementCollection..ctor(RenderingElementContainer owner) +217
Telerik.Reporting.RtfRendering.Table.RenderingElementContainer..ctor(ProcessingElement processingElement) +73
Telerik.Reporting.RtfRendering.Table.ReportSection..ctor(ReportSection processingSection) +89
Telerik.Reporting.RtfRendering.Table.RenderingElementFactory.CreateItem(LayoutElement processingElement) +368
Telerik.Reporting.RtfRendering.Table.RenderingElementCollection..ctor(RenderingElementContainer owner) +217
Telerik.Reporting.RtfRendering.Table.RenderingElementContainer..ctor(ProcessingElement processingElement) +73
Telerik.Reporting.RtfRendering.Table.RenderingElementProxy..ctor(ProcessingElement processingElement) +41
Telerik.Reporting.RtfRendering.Table.Group..ctor(Group processingGroup) +37
Telerik.Reporting.RtfRendering.Table.RenderingElementFactory.CreateItem(LayoutElement processingElement) +272
Telerik.Reporting.RtfRendering.Table.RenderingElementCollection..ctor(RenderingElementContainer owner) +217
Telerik.Reporting.RtfRendering.Table.RenderingElementContainer..ctor(ProcessingElement processingElement) +73
Telerik.Reporting.RtfRendering.Table.Report..ctor(Report processingReport) +37
Telerik.Reporting.RtfRendering.Table.Report..ctor(Report processingReport, Hashtable deviceInfo) +42
Telerik.Reporting.RtfRendering.Table.RtfTableReport.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +129
Telerik.Reporting.RtfRendering.RtfReport.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +202
Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 reports, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +1407
Telerik.Reporting.Processing.ReportProcessor.RenderCore(String format, IList`1 reports, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +103
Telerik.ReportViewer.WebForms.ReportExportOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +194
Telerik.ReportViewer.WebForms.ReportExportOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, Hashtable renderingContext) +207
Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride() +316
Telerik.ReportViewer.WebForms.HandlerOperation.PerformOperation(HttpContext context, ICacheManager cacheManager) +74
Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context) +241
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +308
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17626
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Telerik.Reporting.RtfRendering.Table.RenderingElementCollection..ctor(RenderingElementContainer owner) +193
Telerik.Reporting.RtfRendering.Table.RenderingElementContainer..ctor(ProcessingElement processingElement) +73
Telerik.Reporting.RtfRendering.Table.Report..ctor(Report processingReport) +37
Telerik.Reporting.RtfRendering.Table.RenderingElementFactory.CreateItem(LayoutElement processingElement) +176
Telerik.Reporting.RtfRendering.Table.RenderingElementCollection..ctor(RenderingElementContainer owner) +217
Telerik.Reporting.RtfRendering.Table.RenderingElementContainer..ctor(ProcessingElement processingElement) +73
Telerik.Reporting.RtfRendering.Table.SubReport..ctor(SubReport processingSubReport) +36
Telerik.Reporting.RtfRendering.Table.RenderingElementFactory.CreateItem(LayoutElement processingElement) +1244
Telerik.Reporting.RtfRendering.Table.RenderingElementCollection..ctor(RenderingElementContainer owner) +217
Telerik.Reporting.RtfRendering.Table.RenderingElementContainer..ctor(ProcessingElement processingElement) +73
Telerik.Reporting.RtfRendering.Table.ReportSection..ctor(ReportSection processingSection) +89
Telerik.Reporting.RtfRendering.Table.RenderingElementFactory.CreateItem(LayoutElement processingElement) +368
Telerik.Reporting.RtfRendering.Table.RenderingElementCollection..ctor(RenderingElementContainer owner) +217
Telerik.Reporting.RtfRendering.Table.RenderingElementContainer..ctor(ProcessingElement processingElement) +73
Telerik.Reporting.RtfRendering.Table.RenderingElementProxy..ctor(ProcessingElement processingElement) +41
Telerik.Reporting.RtfRendering.Table.Group..ctor(Group processingGroup) +37
Telerik.Reporting.RtfRendering.Table.RenderingElementFactory.CreateItem(LayoutElement processingElement) +272
Telerik.Reporting.RtfRendering.Table.RenderingElementCollection..ctor(RenderingElementContainer owner) +217
Telerik.Reporting.RtfRendering.Table.RenderingElementContainer..ctor(ProcessingElement processingElement) +73
Telerik.Reporting.RtfRendering.Table.Report..ctor(Report processingReport) +37
Telerik.Reporting.RtfRendering.Table.Report..ctor(Report processingReport, Hashtable deviceInfo) +42
Telerik.Reporting.RtfRendering.Table.RtfTableReport.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +129
Telerik.Reporting.RtfRendering.RtfReport.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +202
Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 reports, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +1407
Telerik.Reporting.Processing.ReportProcessor.RenderCore(String format, IList`1 reports, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +103
Telerik.ReportViewer.WebForms.ReportExportOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +194
Telerik.ReportViewer.WebForms.ReportExportOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, Hashtable renderingContext) +207
Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride() +316
Telerik.ReportViewer.WebForms.HandlerOperation.PerformOperation(HttpContext context, ICacheManager cacheManager) +74
Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context) +241
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +308
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17626