Null Reference Exception when switching to/from Print Preview when a report has expired

2 posts, 0 answers
  1. Stephen McDaniel
    Stephen McDaniel avatar
    48 posts
    Member since:
    Mar 2008

    Posted 21 Jan 2015 Link to this post

    We are running into a problem where our users will see a Null Reference Exception message ("Object reference not set to an instance of an object") when they switch to (or from) Print Preview mode after the report has "expired".  Sometimes the report will expire because they waited too long (I think 20 minutes is the timeout on most of our servers) or if IIS happened to recycle while they were working on the report.  For other operations (such as changing pages), the user gets a friendly message that says: "Report is unavailable or session has expired".  It would be nice if they got a similiar friendly message in the Print Preview case.

    We are on a slightly old version of Reporting but I've verified the bug is in the latest version (Q3 2014 SP1).  We use the Silverlight report viewer.

    To reproduce the problem, run a report.  Then on the server you can execute the following method to clear out the cache (simulating IIS recycling or the session timing out):

            private void ClearCache()
                var cache = System.Web.HttpContext.Current.Cache;
                var enumerator = cache.GetEnumerator();
                while (enumerator.MoveNext())

    Then when you go to Print Preview mode, you'll see the error.  Screenshot attached.

  2. Stef
    Stef avatar
    3610 posts

    Posted 26 Jan 2015 Link to this post

    Hi Stephen,

    Thank you for reporting the problem.

    We logged the issue for improvement to provide more friendly message and your Telerik points are update.

    Let us know if we can be of any further help for you.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top