-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.net8+orchardcore blazorserver mode render component error #15211
Comments
That's default behavior of Razor Component rendering!!! According to Microsoft's docs
To render component from <component type="typeof(Component1)" render-mode="ServerPrerendered" /> |
. net7 is normal,. net8 is incorrect, the environment is .net8+orcardcore, not console |
Describe the bug
.net8+orchardcore create webpage, use blazorserver mode @(await Html.RenderComponentAsync(RenderMode.ServerPrerendered)) error.
error content:
System.InvalidOperationException: The current thread is not associated with the Dispatcher. Use InvokeAsync() to switch execution to the Dispatcher when triggering rendering or component state.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
System.InvalidOperationException: The current thread is not associated with the Dispatcher. Use InvokeAsync() to switch execution to the Dispatcher when triggering rendering or component state.
Screenshots
The text was updated successfully, but these errors were encountered: