Starts in:
1 DAY
23 HRS
19 MIN
7 SEC
Starts in:
1 D
23 H
19 M
7 S
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 November 20, 2024, 13:06