Ticket T1041951
Visible to All Users

XAF Blazor "Cannot override storage" error after updating to 21.2.3

created 3 years ago

Hello,
I am getting "Cannot override storage." when showing a new page after updated to 21.2.3. Attached sample solution worked in 21.1.6 but gets the error after the update. Click "Print Report" button to recreate.

Follow after breakpoint at line 35 in DXApplication10.Blazor.Server.Controllers.ReportController to see where the exception raised

Please advice.

Thank you.

Comments (1)
Anatol (DevExpress) 3 years ago

    Hello Tim,

    We reproduced this issue on our side. I forwarded your ticket to our developers for further research. We will post our progress here.

    Answers approved by DevExpress Support

    created 3 years ago

    Hello,

    Thank you for your patience. The ShowReport.razor page and a custom IWebDocumentViewerReportResolver implementation are used in the attached sample. They do not initialize the XAF context while XafReportConcurrentCacheService relies on it. This causes the described behavior. It is possible to call the GetApplication method of the IXafApplicationProvider service to ensure the required initialization. You can do this on the ShowReport.razor page in the following way:

    Razor
    ... @inject DevExpress.ExpressApp.Blazor.Services.IXafApplicationProvider applicationProvider; ... @code { protected override void OnInitialized() { applicationProvider.GetApplication(); ... } }

    Please check this and let me know if further assistance is required. I am looking forward to hearing from you.

    Thanks,
    Ilya P

      Comments (1)

        Your suggestion resolved the issue. Thank you.

        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.