0
BassaSolutions created
With 4.3.2, we added a Blazor.Server Startup Project to our existing Blazor Project. On Blazor WASM, ABP automatically shows Error Dialogs for exceptions, e.g. for validations or UserFriendlyExceptions.
On Server side blazor no dialog is shown, instead, the whole client freezes. What must be done to get the ABP Error Dialog on Blazor.Server?
How to reproduce:
- Use new 4.3.2 (or 4.3.3) startup template with blazor
- Start blazor.server
- Throw UserFriendlyException
Thanks you!
1 Answer(s)
-
0
Hi,
Exceptions must be manually handled, otherwise it crashes the whole application. Auto exception handling is not possible with Blazor Server (not because of ABP, but Blazor doesn't allow it). Please see https://github.com/abpframework/abp/issues/8195
You can use try-catch and call HandleErrorAsync method of ABP which shows the error dialog. This, at least, simplifies it.