Hi!
I add manually the Identity by scafolding. Im trying to get to some pages such as Login or Register, but always get a 404 not found.
The same is happening to SignIn.razor (default structure of the blazor project)
It seems a configuration is
Hi friend! Thanks for answering.
What i was missing is the @page "/register" on page. Looks like solve!
Thanks!
1. Check the Router in App.razor
Make sure you have configured the router correctly in the App.razor file. This file typically contains the Router component for routing pages in the Blazor application. Make sure your App.razor looks like this:
razor
Copy the code
<Router AppAssembly="@typeof(Program).Assembly">
<Found Context="routeData">
<RouteView RouteData="routeData" DefaultLayout="@typeof(MainLayout)" />
<FocusOnNavigate RouteData="routeData" Selector="h1" />
</Found>
<NotFound>
<LayoutView Layout="@typeof(MainLayout)">
<p>Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
</Router>
2. Check Directory Structure and File Names
Make sure that the SignIn.razor, Register.razor files (or the filename you used) are in the correct folder and are named correctly.
3. Check Routes in Razor Files
Make sure you have defined routes properly in your .razor files. For example:
razor
Copy the code
@page "/signin"