Cannot find the fallback endpoint specified by route values: { page: /_Host, area: }
问题 I use This Project and created a project exactly like it, But receive Cannot find the fallback endpoint specified by route values: { page: /_Host, area: }. Error when I start the project, In the startup configure method I have: app.UseEndpoints(endpoints => { endpoints.MapBlazorHub(); endpoints.MapDefaultControllerRoute(); endpoints.MapFallbackToPage("/_Host"); }); How to resolve this error? 回答1: Make sure that you have <base href="~/" /> declaration inside the <head /> tag in your _Host