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!

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