A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
Hi @Yaseen Shaikh ,
Thanks for reaching out.
The /0 path is likely just a side-effect of the crash. One possibility is that after upgrading to .NET 10, your Blazor WebAssembly app might not be receiving its runtime files (blazor.webassembly.js, dotnet.js, .wasm) correctly. In that case, the browser could be getting HTML (usually index.html) instead, which would prevent the runtime from starting and could produce the “Exception Unhandled: 0” error. I suggest you read Bruce's answer to be aware of these changes.
This could explain why you see:
- Crashes inside
blazor.webassembly.js - MIME type errors in the browser console
- Your own app code never running
- The unexpected
/0request
Some things you might want to check:
- Ensure static files are mapped before any BFF or SPA fallback routes.
- Use the browser Network tab to confirm
.jsand.wasmfiles are actually served, not HTML. - Check that
<base href="...">matches your hosting path. - Make sure Blazor runtime files (
_framework/*) aren’t caught by catch-all rewrites.
If the runtime files load correctly, the crash and /0 requests would likely disappear.
Hope this helps! If my answer was helpful - kindly follow the instructions here so others with the same problem can benefit as well.