You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.NET 8 RC2 Docs Example "Render-Mode-7" InteractiveWebAssembly unable to find "Root Component Type BlazorWebAppAutoGlobal.Components.SharedMessage"
#51533
Error: One or more errors occurred. (Root component type 'BlazorWebAppAutoGlobal.Components.SharedMessage' could not be found in the assembly 'BlazorWebAppAutoGlobal'.)
The server interactivity render mode component works as shown, but the page loads and error for the WebAssembly SharedMessage component when loading.
I created a project with all of these example pages and components in projects as described (this page does not state exactly where to make it but made it in the server > components > pages folder) to test all the scenarios.
I only put pages for render modes 3 and 4 in client project pages hoping I followed all the instructions.
All the pages and components examples for different render modes for these first 11 examples seem to work as described and even the ones with expected errors except this one example for the @render-mode-7 page in this project solution.
The server interactivity render mode component works as shown, but the page loads and error for the WebAssembly interactivity render mode with the SharedMessage component when loading. It takes a second or two before the component error is shown on the page.
Is there something wrong I am doing or is this expected behavior for this project setup when demonstrating the render mode 7 example? Or has this already been discussed as an issue and I overlooked it when searching for it?
For the examples in this documentation it would be nice to have explanation how to properly create a project to test all these scenarios out prior to the examples and group them by the project setup if it makes a difference as far as Auto and Global settings go, or even state it does not matter which of these settings you select for the project template to be used to follow the examples. A link to a project repo with this all setup to test would be nice as well.
Is there something else I should be doing or to look for in regards to resolving this error to test this example? I am guessing I need to not use "Global" or "Auto" when setting up the example project. I just wanted to confirm this if this is expected or not with the configuration of this solution if that makes sense.
I may have recalled this issue in the RC 2 video I will have to go back and review as I know there was one or two issues to expect. If so this question can be ignored.
Another interesting behavior is only when switching between page examples 7 and 8 the first component with server interactivity render mode parameter stays set to "Somebody clicked me!" but not between any others.
One last thing I have noticed is when you switch from render-mode-10 to render-mode-7 pages the error does not appear, but the second component button is still not interactive (WebAssembly Interactivity).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Project Template configurations:
Template: Blazor Web App
Interactivity Type: Auto
Interactivity Location: Global
When following the docs instructions here:https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-8.0#child-components-with-different-render-modes the
<SharedMessage @rendermode="RenderMode.InteractiveWebAssembly" />
component generates an error in the browser stating the following:Error: One or more errors occurred. (Root component type 'BlazorWebAppAutoGlobal.Components.SharedMessage' could not be found in the assembly 'BlazorWebAppAutoGlobal'.)
The server interactivity render mode component works as shown, but the page loads and error for the WebAssembly SharedMessage component when loading.
I created a project with all of these example pages and components in projects as described (this page does not state exactly where to make it but made it in the server > components > pages folder) to test all the scenarios.
I only put pages for render modes 3 and 4 in client project pages hoping I followed all the instructions.
All the pages and components examples for different render modes for these first 11 examples seem to work as described and even the ones with expected errors except this one example for the
@render-mode-7
page in this project solution.The server interactivity render mode component works as shown, but the page loads and error for the WebAssembly interactivity render mode with the SharedMessage component when loading. It takes a second or two before the component error is shown on the page.
Is there something wrong I am doing or is this expected behavior for this project setup when demonstrating the render mode 7 example? Or has this already been discussed as an issue and I overlooked it when searching for it?
For the examples in this documentation it would be nice to have explanation how to properly create a project to test all these scenarios out prior to the examples and group them by the project setup if it makes a difference as far as Auto and Global settings go, or even state it does not matter which of these settings you select for the project template to be used to follow the examples. A link to a project repo with this all setup to test would be nice as well.
Is there something else I should be doing or to look for in regards to resolving this error to test this example? I am guessing I need to not use "Global" or "Auto" when setting up the example project. I just wanted to confirm this if this is expected or not with the configuration of this solution if that makes sense.
I may have recalled this issue in the RC 2 video I will have to go back and review as I know there was one or two issues to expect. If so this question can be ignored.
Another interesting behavior is only when switching between page examples 7 and 8 the first component with server interactivity render mode parameter stays set to "Somebody clicked me!" but not between any others.
One last thing I have noticed is when you switch from render-mode-10 to render-mode-7 pages the error does not appear, but the second component button is still not interactive (WebAssembly Interactivity).
Thanks for any assistance!
Beta Was this translation helpful? Give feedback.
All reactions