Closed justlucky closed 8 months ago
I think it's a duplicate of #15211
@justlucky are you using any themes?
我认为这是#15211的复制品
That issue has been closed, but it cannot be resolved
@justlucky are you using any themes?
Yes, using the default theme, this issue only exists in the .net8 environment and not in the .net7 environment.
@justlucky are you using any themes?
I think OrchardCore failed to adapt to the underlying mechanism of .net8, and it is normal for .net8 template projects to output blazer server components.
@justlucky Can you please check changes in PR #15247 and validate if it resolves the issue?
@justlucky Can you please check changes in PR #15247 and validate if it resolves the issue?
Replacing DisplayHelper.cs has resolved the issue. thanks
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:
Create a OrchardCore app, add module, and add WebPage page. Create blazorclasslibrary project, add default Component. call Html.RenderComponentAsync in webpage. browser webpage. 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.
. net7 is normal,. net8 is incorrect, the environment is .net8+orcardcore, not console
Screenshots a1 a2