Object Reference Not Set Error - ReportDataDataSource

Stimulsoft Reports.WEB discussion
Post Reply
fuhrj
Posts: 120
Joined: Wed Jun 11, 2008 12:51 pm
Location: Lancaster, Ohio

Object Reference Not Set Error - ReportDataDataSource

Post by fuhrj »

We have a customer that is getting the following error if he attempts to run a report for more than six days:
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.]
Reports.ReportDataDataSource.get_timeOut() +79
Reports.Service_Request_Summary_by_User.Data1__Rendering(Object sender, EventArgs e) +34
Stimulsoft.Report.Engine.StiEngine.InternalRenderBand(StiBand band, Boolean ignorePageBreaks, Boolean allowRenderingEvents, Boolean& isChildsEnabled) +1732
Stimulsoft.Report.Engine.StiEngine.RenderBand(StiBand band, Boolean ignorePageBreaks, Boolean allowRenderingEvents) +660
Stimulsoft.Report.Engine.StiDataBandV2Builder.RenderMaster(StiDataBand masterDataBand) +1043
Stimulsoft.Report.Engine.StiPageHelper.RenderPage(StiPage page) +2522
Stimulsoft.Report.Engine.StiRenderProviderV2.RenderReport(StiReport report, StiReport masterReport, StiRenderState state) +2152
Stimulsoft.Report.Engine.StiRenderProviderV2.Render(StiReport report, StiRenderState state) +5045
Stimulsoft.Report.Engine.StiReportV2Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState) +1254
Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState) +677
Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode) +1033
Stimulsoft.Report.Web.StiWebViewer.OnBubbleEvent(Object source, EventArgs e) +838
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +84
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3804
The source of the error appears to be this:
Reports.ReportDataDataSource.get_timeOut() +79
What does this method do?

The report is launched from our ASP.NET application.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Object Reference Not Set Error - ReportDataDataSource

Post by HighAley »

Hello.

To help you we need to see the report template with sample data.
Do you use any script in rendering event?
It seems that there is something wrong.
Or it's better to get a working Visual Studio project that reproduces the issue.

Thank you.
fuhrj
Posts: 120
Joined: Wed Jun 11, 2008 12:51 pm
Location: Lancaster, Ohio

Re: Object Reference Not Set Error - ReportDataDataSource

Post by fuhrj »

Unfortunately we can't reproduce the problem on our dev server. It's only happening with this one customer when he runs it for more than six days.

I've attached the report that is in question.

The application is using Stimulsoft.Report.Web 2011.1.1000.0

Would it be related to a database command timeout?
Attachments
ServiceReqByEmp.mrt
(24.85 KiB) Downloaded 196 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Object Reference Not Set Error - ReportDataDataSource

Post by HighAley »

Hello.

You have sent us not the that report that had the error. The error stack is from different report.

It seems that the ReportData.timeOut column has null value. So you get an exception. Please, try to set the type of this column to Nullable. This should help.

In our latest official release there an improvement that don't allow such exceptions to appear.

Thank you.
Post Reply