Bug Report T1173488
Visible to All Users

Document Viewer - NullReferenceException exception occurs while using Cached Report Source Builder on Azure

created 2 years ago

Steps to reproduce:

  1. Use the UseCachedReportSourceBuilder method to configure Cached Report Source Builder on Azure as demonstrated in the following help topic: Microsoft Azure Reporting.
  2. Open a page with the Document Viewer component.
  3. Wait until the document cleaner process triggers the cache cleaning operation.

Expected results:

The application works correctly without throwing any exception.

Current results:

The NullReferenceException exception occurs with the following call stack:

Call Stack
System.NullReferenceException: Object reference not set to an instance of an object. at DevExpress.AspNetCore.Reporting.Azure.WebDocumentViewer.Native.AzureStorageHelper.CreateBatchDeleteOperationsDictionary[T](String filter, CloudTable table, Action\\\`1 forEachProcessedEntity) at DevExpress.AspNetCore.Reporting.Azure.WebDocumentViewer.Native.AzureSearchResultStorageAsyncBase.ClearAsync(TimeSpan timeToLive) at DevExpress.AspNetCore.Reporting.Native.Services.AspNetCoreThreadingTimerStoragesCleaner.<ClearCoreAsync>d__21.MoveNext()

Answers approved by DevExpress Support

created 2 years ago (modified 2 years ago)

We have addressed the issue described in this ticket and will include a fix in our next maintenance update. Should you need to apply our fix prior to official release, you can request a hotfix here.

Important Notes:

  • Hotfixes may be unavailable for Early Access/Beta builds or updates set for release within a week.
  • .NET only: in the NuGet Package Manager, use your personal NuGet feed and check the "Include prerelease" option to view the hotfix package in the "Updates" tab.
Additional information:

The current fix is available for the .NET 6+ platform only (ASP.NET Core & Blazor).
We need some additional time to research the capability of fixing this for .NET Framework platforms (ASP.NET Web Forms, ASP.NET MVC 5).

    Show previous comments (3)
    Vasily (DevExpress Support) 2 years ago

      Hello,

      Yes, we need to make sure that the hotfix build passes all our tests and security checks. In some cases, additional time may be required to prepare a build. We appreciate your understanding.

        just confirming for the notes, this did fix my issue, thank you.

        Vasily (DevExpress Support) 2 years ago

          Hello,

          Thank you for your update! We are happy to hear that our fix resolves the issue on your side.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.