Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Blazor Identity Pages


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


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)


Great! Get ready for great games on fnaf



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)">

Sorry, there's nothing at this address.

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"

Sign In

razor Copy the code @page "/register"

Register


Thank you so much for helping me solve this problem, I have fnaf world read many articles but nothing helped me and when I saw this answer of yours I followed it and it is now working very stable.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(