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

Blazor server on ASP.NET Core MVC getting error 500 when loading blazor.server.js [.NET8]

$
0
0

I'm testing this Blazor server on our existing ASP.NET Core MVC project using the latest .NET 8.

When running, this error always occurs:

The request matched multiple endpoints. Matches: Blazor static files

enter image description here

I followed the tutorial at Microsoft:

services.AddRazorComponents().AddInteractiveServerComponents();app.UseStaticFiles();  //blazor  app.MapBlazorHub();  app.MapRazorComponents<App>().AddInteractiveServerRenderMode();

When removing AddInteractiveServerRenderMode() in MapRazorComponents, the blazor.js file is loading but onclick trigger event is not working


Viewing all articles
Browse latest Browse all 4839

Trending Articles



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