HttpContext == null #4457
-
I have a Core 8 application using Blazor 8 and CLSA 8.2.8. The application have a few pages all of them are loading except one page which keeps posting "System.InvalidOperationException: HttpContext == null" on the first CSLA fetch or create. None of the other pages are exhibiting this issue, and it is only happening on our test server not locally. I cannot seem to figure this one out and no amount of searching has helped me. Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
This occurs when the state management subsystem is retrieving the unique session id for the current user. To do this, it makes use of the Can you narrow this down to a specific navigation path used to arrive at the failing page? Or does this page fail with different navigation paths taken to arrive there? |
Beta Was this translation helpful? Give feedback.
I misread the code.
So now my question is why you are using a sync
Fetch
call? Blazor generally won't work with sync calls to things like the database or an app server. I would expect to have issues when calling a sync data portal method instead of awaiting aFetchAsync
call.