Learning blazor, stuck on todo page

Murat Şeşen 20 Reputation points
2024-12-19T10:03:14.88+00:00

I was following the blazor learning path. I was on the 3. level: https://learn.microsoft.com/en-us/training/modules/build-blazor-todo-list/3-exercise-data-binding
I created a Todo.razor page according to the instructions but when I run the project and navigate to /todo page it had returned 404 page not found.

How come this simple step cannot be passed without error.

Developer technologies | .NET | Blazor
Community Center | Not monitored
{count} votes

Answer accepted by question author
  1. Pradeep M 9,875 Reputation points Microsoft External Staff Moderator
    2024-12-19T11:55:02.6166667+00:00

    Hi Murat Şeşen,

    The 404 error may be caused by issues with routing or the build process. Please ensure the @page "/todo" directive is correctly placed in your Todo.razor file and that the file is located in the Components/Pages folder. Try rebuilding the project and clearing your browser cache. If the issue persists, double-check the NavMenu link and the folder structure for any typos. I tested it on my end, and everything appears to be working correctly.

    I have attached a screenshot for your reference: User's image

    Please feel free to contact us if you have any additional questions.    

    If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community. 


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.