Trying to establish user accounts in my blazor web assembly app and build an element of authentication.
However, two components have the error:
Found markup element with unexpected name 'xxxxxxxxxxxxxxxx'
The two problematic components are AuthorizeRouteView and CascadingAuthenticationState.
My code:
<Router AppAssembly="@typeof(Program).Assembly">
<Found Context="routeData">
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
</Found>
<NotFound>
<CascadingAuthenticationState>
<LayoutView Layout="@typeof(MainLayout)">
<p>Sorry, there's nothing at this address.</p>
</LayoutView>
</CascadingAuthenticationState>
</NotFound>
</Router>
Any clue what might be wrong?