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.]
   ScriptingNamespace.ScriptingReport.Catalog_BeforePrint(Object sender, PrintEventArgs e) in c:\Users\PerfionAPIService4551\AppData\Local\Temp\abz1mkue.0.cs:1569
   DevExpress.XtraReports.ScriptManager.Run(EventHandler`1 handler, Object sender, E e) +139
   DevExpress.XtraReports.XREventsScriptManager.RunEventScript(Object eventId, String eventName, IScriptable scriptable, E e) +346

[ScriptExecutionException: The following error occurred when the script in procedure Catalog.BeforePrint was executed:
Object reference not set to an instance of an object.]
   DevExpress.XtraReports.XREventsScriptManager.RunEventScript(Object eventId, String eventName, IScriptable scriptable, E e) +800
   DevExpress.XtraReports.UI.XRControl.RunEventScriptAndExpressionBindings(Object eventId, String eventName, E e) +242
   DevExpress.XtraReports.UI.XRControl.OnBeforePrint(PrintEventArgs e) +105
   DevExpress.XtraReports.UI.XtraReport.OnBeforePrint(PrintEventArgs e) +457
   DevExpress.XtraReports.UI.XtraReport.TryCreateDocumentCore(Single progressRange, Boolean buildPagesInBackground) +69
   DevExpress.XtraReports.UI.XtraReport.TryCreateDocument(Single progressRange, Boolean buildPagesInBackground) +290
   Pims.Api.Reporting.SuperQueryBL_Dal.EX(Stream A, String Z, ILongJobInformer E) +547
   Pims.Api.Reporting.SuperQueryBL_Dal.XX(PXmlSuperQuery A, OutputAction Z, String E, Stream F, String S, DataSet J, PXmlOutputParamsContainerList W, ILongJobInformer C, Report O) +2947
   Pims.Api.Reporting.SuperQueryBL_Dal.RunSuperQuery(PXmlSuperQuery viewXML, OutputAction outputAction, String reportPath, Stream exportStream, String reportTitle, DataSet customData, PXmlOutputParamsContainerList outputParamsContainerList, Report report) +245
   Perfion.Api.Output.ReportBuilder.WriteReportOnItems(Stream stream, Int32 contextTypeID, List`1 contextIDs, DataSet customData) +456
   Perfion.Api.Output.ReportBuilder.WriteReport(Stream stream, List`1 ids, DataSet customData) +581
   Perfion.Api.Output.ReportBuilder.WriteReport(HttpResponse response, List`1 ids, DataSet customData) +127
   Perfion.Web.ReportServer.ProcessRequest(HttpContext context) +5246
   Perfion.APIService.Report.ProcessRequest(HttpContext context) +119
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +542
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0