If you have a Blazor 8 app that does the following:
- Is configured to use CSLA state management, so state is kept in sync between server and wasm, including user identity
- Is configured to not flow the user from the wasm client to the data portal server (this is the default)
- Makes a data portal call from a wasm client to the aspnetcore/Blazor server
- The data portal on the server makes another root data portal call (such as a UoW object)
- That second data portal call should be using the aspnetcore
IContextManager, but it continues to use the state-aware Blazor context manager
- This fails, because the data portal attempts to call
SetUser, thinking it is running in aspnetcore, but having the wrong context manager (Blazor server) which doesn't support setting the user
The fix is to ensure that, with a cascading root data portal call like this, that the correct context manager is used.
Probably related to #4075
If you have a Blazor 8 app that does the following:
IContextManager, but it continues to use the state-aware Blazor context managerSetUser, thinking it is running in aspnetcore, but having the wrong context manager (Blazor server) which doesn't support setting the userThe fix is to ensure that, with a cascading root data portal call like this, that the correct context manager is used.
Probably related to #4075