Open Closed

Object Disposed Exception in Blazor Server App #5289


User avatar
0
neethucp created

Hi,

We are getting "Object Disposed Exception" when we click a menu item before the current menu item page is fully loaded.

Cannot access a disposed object.

at Microsoft.AspNetCore.Components.OwningComponentBase.get_ScopedServices() at Volo.Abp.AspNetCore.Components.AbpComponentBase.get_CurrentTenant()

Can you please provide a solution to fix this?

ABP Framework version: v7.2.2 UI type: Blazor Server DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): yes


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Related question: https://support.abp.io/QA/Questions/4392/Blazor-WASM-SystemObjectDisposedException-Cannot-access-a-disposed-object-of-dependency-injection-replacement--scenario-of-UserManagement

    The component will be disposed when you switch pages, it is not related to ABP. but we can try to avoid this problem, I will check it.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15