Skip to content
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

InvalidOperationException #382

Open
madomodoki opened this issue Aug 17, 2023 · 1 comment
Open

InvalidOperationException #382

madomodoki opened this issue Aug 17, 2023 · 1 comment

Comments

@madomodoki
Copy link

Hi.

A new server-based project was created using this template.
When I start building and debugging (without any editing !),
the sample website appears fine and appears to be working as expected.
However, when I look at the output window of the integrated development environment, I see the following error messages

Exception thrown: 'System.InvalidOperationException' in Microsoft.AspNetCore.Components.Server.dll
Exception thrown: 'System.InvalidOperationException' in Microsoft.JSInterop.dll
Exception thrown: 'System.InvalidOperationException' in System.Private.CoreLib.dll
Exception thrown: 'System.InvalidOperationException' in System.Private.CoreLib.dll

Is this the behavior intended by the developers?
mudblazor

@ScarletKuro
Copy link
Member

ScarletKuro commented Aug 17, 2023

Hi.

Yes, this is indeed. This is swallowed exception from the prerendering when JSInterop is not available:
https://github.com/MudBlazor/MudBlazor/blob/c4915b813bf6770dc5f0a114c392de410ce37cf8/src/MudBlazor/Services/IIJSRuntimeExtentions.cs#L67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants