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://zcusa.951200.xyz/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.

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
11 questions
{count} votes

Accepted answer
  1. Pradeep M 4,635 Reputation points Microsoft Vendor
    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 Answers by the question author, which helps users to know the answer solved the author's problem.