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

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 24, 2026, 12:09
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.