Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4449

I keep getting a HTTP 404 error when trying to go to a Razor page

$
0
0

I'm working on a new Blazor app. This is the first Blazor app I've worked on since taking a Blazor course. I've added some razor pages as well. One of the pages never is found and always raises a HTTP 404 error, but the other pages are fine and can be found. Here's a code snippet from my _Layout.cshtml file:

<li class="nav-item"><a class="nav-link active" aria-current="page" href="/TimeTrackInputTime">                                Input Time</a></li><li class="nav-item"><a class="nav-link active" aria-current="page" href="/UserMaintenance">                                User Maintenance</a></li><li class="nav-item"><a class="nav-link active" aria-current="page" href="/InputTimeForUser">                                Input Time for User</a></li>

Both the InputTimeForUser.cshtml and UserMaintenance.cshtml files can be found fine. However, the TimeTrackInputTime.cshtml is never found. This is so frustrating, because they are exactly similar. All 3 files begin with this:

@page @model FP_Timetrack_Core.Pages.TimeTrackInputTimeModel

and even if I put in

@page "/TimeTrackInputTime"

it is still not found. I've double checked the spelling, and they are identical. I've not been able to find anything exactly like this issue.


Viewing all articles
Browse latest Browse all 4449

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>