I’m trying to add a simple filepicker to a Blazor .NET 9 app, but it crashes. The code is simply:
<InputFile OnChange="HandleSelection" />
@code {
private async Task HandleSelection(InputFileChangeEventArgs e)
{
var file = e.File;
}}
This works fine in .NET 8, but causes a crash in .NET 9 with error:
The program ‘[36348] BlazorApp4.exe’ has exited with code 4294967295 (0xffffffff).
Is there a known fix for this?
TIA!
Dennis
5
Turns out the culprit was the Brave browser. Reinstalling VS set Chrome as default browser, and it started working again. When I chose Brave (my actual default browser) for debugging, the same problem came back.
1