Open Closed

How to trigger app.UseErrorPage() #2561


User avatar
0
zhongfang created

What's the best practice of globle exception handler in Blazor Server Side application?

It seem that 'app.UseErrorPage()' is not working.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v5.1.3
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

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

    Hi,

    It seem that 'app.UseErrorPage()' is not working.

    'app.UseErrorPage()' is not available for Blazor app. see: https://docs.microsoft.com/en-us/aspnet/core/blazor/fundamentals/handle-errors?view=aspnetcore-6.0#error-boundaries

    We have to try to improve it: See: https://github.com/abpframework/abp/issues/8195

  • User Avatar
    0
    zhongfang created

    Waiting for you good news!

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.0.0-preview. Updated on September 01, 2025, 08:37