DebugMaster
DebugMaster

Reputation: 43

Blazor fails on page reload

I used one of the VS2019 project templates to create a new Blazor app. The menu on the left in the app works, but as soon as I hit F5 or type in the URL e.g. https://localhost:44352/fetchdata the browser runs into 404 page not found. Any idea what might be the problem?

Upvotes: 2

Views: 457

Answers (1)

DebugMaster
DebugMaster

Reputation: 43

I was missing the MapFallbackToPage call in UseEndpoints.

Upvotes: 1

Related Questions