I have this existing Blazor Hosted project (Client + Shared + Server) that I migrated without problems to .NET 8. I then tried experimenting with the new Interactivity features and after following the documentation, when I start the project and navigate to the entrypoint it gives me a 404 with the following log
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://localhost/ - - -
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/1.1 GET http://localhost/ - 404 0 - 10.0613ms
info: Microsoft.AspNetCore.Hosting.Diagnostics[16]
Request reached the end of the middleware pipeline without being handled by application code. Request path: GET http://localhost/, Response status code: 404
Like it's missing the generated index.html. I tried publishing the project and the index.html seems correctly generated from the App.razor
This behavior doesn't happen in another project I converted in the same way (below the passages).
Expected Behavior
The endpoint should hit the index.html correctly
Steps To Reproduce
Starting from an existing Blazor Hosted project converted to .NET 8
Moved the App.razor content into a Routes.razor
Moved App.razor from the client to the server (under /Components) and copied the index.html component so that App.razor looks like this
Is there an existing issue for this?
Describe the bug
I have this existing Blazor Hosted project (Client + Shared + Server) that I migrated without problems to .NET 8. I then tried experimenting with the new Interactivity features and after following the documentation, when I start the project and navigate to the entrypoint it gives me a 404 with the following log
Like it's missing the generated
index.html
. I tried publishing the project and theindex.html
seems correctly generated from theApp.razor
This behavior doesn't happen in another project I converted in the same way (below the passages).Expected Behavior
The endpoint should hit the
index.html
correctlySteps To Reproduce
Starting from an existing Blazor Hosted project converted to .NET 8
App.razor
content into aRoutes.razor
App.razor
from the client to the server (under/Components
) and copied theindex.html
component so thatApp.razor
looks like this