Ask Your Question
2

Why are the Register and Login links not visible after scaffolding Identity pages in an ASP .NET Core 6.0 MVC project?

asked 2021-10-02 11:00:00 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-02-14 09:00:00 +0000

scrum gravatar image

There could be multiple reasons for the Register and Login links not being visible after scaffolding Identity pages in an ASP .NET Core 6.0 MVC project. Some of the common reasons are:

  1. Missing or incorrect authentication settings: This could happen if the authentication settings in the ConfigureServices method in Startup.cs are not configured properly. Make sure that you have added the right authentication middleware and set the correct authentication options.

  2. Missing or incorrect routing settings: The links for Register and Login could be missing if the routing settings are not defined properly in the project. Make sure that the routing settings in Startup.cs are configured correctly.

  3. Missing or incorrect razor pages: It could be possible that the razor pages for Register and Login are missing from the Views folder in the project. Check if the razor pages for these actions are present and if not, add them manually.

  4. Missing or incorrect links in the Layout view: The links for Register and Login could be missing if the links are not correctly added to the Layout view. Make sure that the links are added to the appropriate place in the Layout view.

  5. Missing or incorrect CSS styles: It could be possible that the links for Register and Login are present but hidden due to incorrect CSS styles. Check if the CSS styles for the links are defined properly and if not, add or modify them accordingly.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-10-02 11:00:00 +0000

Seen: 11 times

Last updated: Feb 14 '22