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

Blazor WASM component causes server to crash

$
0
0

I've found that it's pretty much impossible to use the InputFile component with a Blazor WASM standalone app in .NET 8. Even just the component, <InputFile />, with nothing else in a fresh project, causes the server to crash - the app will still work fine, but the server will be gone.

There are no console or server logs to be found - just, the server stops, dotnet.exe has stopped with exit code -1. I wish there was more information to provide, but I have nothing. All the context I can give is that I'm trying to load a file from the user's device into memory.

Is there something I'm missing about WASM that makes this impossible, or a way around this? Is it a known issue?

Edit: After further investigation following a comment from LMA, I've found that it's the HTML <input type="file" /> that causes the crash.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



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