Object reference not set path:nonfile #5838
Replies: 3 comments 4 replies
-
|
@Justincale is there any additional exception details? |
Beta Was this translation helpful? Give feedback.
-
|
Hi Shaun, as this only seems to be happening when non existent urls are being hit, i'm wondering if the upgrade to .net10 introduced some kind of global exception handler that is being triggered and writing to the log? |
Beta Was this translation helpful? Give feedback.
-
|
The HandlePageNotFound(Site site, Page page, Route route) method contains calls to NavigationManager.NavigateTo(url, true) which previously short circuited the page processing. In .NET 10 it appears that it is no longer short circuiting the page processing, which is why it is executing the GetPageResources() method (and throwing an exception). I believe this issue has already been fixed in the Dev branch, as @zyhfish implemented the new NavigationManager.NotFound() method which is new to Blazor in .NET 10. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I’m getting a ton of Log Message: Unhandled Exception: Object reference not set to an instance of an object. For Endpoint: Fallback {*path:nonfile} after updating a site hosted on azure to .net10
the site seems to be ok. Any thoughts? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions