Skip to Content
avatar image
Former Member

Object reference not set to an instance of an object in CrystalReportViewer when navigating

crerror.pngHi

Winforms Application - .net 4.6

Crystal Reports v13.0.2000.0 - SP 20

We've recently updated our application to .net 4.6 and CR to v2013, from CR2008. We have a report that was running fine in CR 2008, no issues, but now the report throws an error when we are navigating from page 1, to 2, to 3 etc... After 10 pages, it throws an error.

Attached is a screen of the error that I capture in the "Error" event, and below is the Call Stack. I've tried searching for this but have found no answer. No matter where on the group tree I click, after about 10 pages the error happens - I've checked the data and can't find any issues with that. I've tried attaching the report, but can't as it's not an image.

Can you please help me as it's driving me crazy.

Thanks

>CrystalReportViewerUI.exe!CrystalReportViewerUI.Form1.ReportViewerError(object = {CrystalDecisions.Windows.Forms.PageView}, CrystalDecisions.Windows.Forms.ExceptionEventArgs = {CrystalDecisions.Windows.Forms.ExceptionEventArgs}) Line 285C# CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.CrystalReportViewer.FireHandleExceptionEvent(object = {CrystalDecisions.Windows.Forms.PageView}, CrystalDecisions.Windows.Forms.ExceptionEventArgs = {CrystalDecisions.Windows.Forms.ExceptionEventArgs})Unknown CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.CrystalReportViewer.HandleExceptionEvent(object = {CrystalDecisions.Windows.Forms.PageView}, System.Exception = {"Object reference not set to an instance of an object."}, bool = false)Unknown CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.CrystalReportViewer.HandleExceptionEvent(object = {CrystalDecisions.Windows.Forms.PageView}, System.Exception = {"Object reference not set to an instance of an object."})Unknown CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.PageView.ShowNextPage()Unknown CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.PageView.nextPageButton_Clicked(object = {System.Windows.Forms.ToolStripButton}, System.EventArgs = {System.EventArgs})Unknown

crerror.png (12.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Former Member

    Note, after searching the Q&A I've seen others with the same issue, and also tried rolling back to SP17 and still get the same issue.

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 01 at 09:26 PM

    Moved to CR for VS tag.

    I assume it's a WEB app?

    If it is then you need to use Sessions and Postback to keep the report in scope.

    Verify if it is or not?

    Don

    Add comment
    10|10000 characters needed characters exceeded