Replies: 2 comments 8 replies
-
The exception should be handled, perhaps something else is happening? csla/Source/Csla.Blazor/ViewModel.cs Line 115 in e059808 |
Beta Was this translation helpful? Give feedback.
-
Hi again Rocky, csla/Source/Csla.Blazor/ViewModel.cs Line 133 in e059808 I created a copy of your ViewModel (called it ViewModelPlus) in my own project and set it up for DI etc. During single-stepping I found the Blazor standard error handler kicking in when the above line is executed. I removed the line and everything just seemed to work fine! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a following code which removes an item from a BusinessList and saves the list. I do this to achieve deleting of records.
Now to just commented out the Update function in my BusinessList as if I forgot to implement it.
The ViewModel seems to have exception and also error message which I show in the UI side.
But the standard "Reload" element of Blazor application also pops up which seems to show the exception is treated as unhandled exception.
Can you please suggest proper way of handling server side exceptions when ViewModel is used in Client side blazor application.
It works fine in server side Blazor application though.
Beta Was this translation helpful? Give feedback.
All reactions