ASP.NET Core Backend Silently Crashing For No Reason
ideadvanced
I have a puzzling, bizarre problem. I'm working on a TypeScript + React backend using Vite development server, and my backend is ASP.NET Core (.NET 10). I use
Visual Studio 2026
Visual Studio 2026
as my IDE for the backend.
The problem: when I select an image file using a html file input (for profile picture uploading), my backend just stops working at that exact moment. I have replicated it countless times and I am certain the "crash" happen exactly when I select an image from the file picker.
There are no errors being thrown anywhere. I've checked windows events, OpenTelemetry logs, console output, VS terminals.. There is not a single error. I've adjusted Visual Studio's exception settings to break when any exception happen anywhere, and still didn't come across an error. Not that I expected to - what does a purely frontend action (picking a file in a file picker) have to do with silently crashing the entire backend? Note that it crashes before I perform any file submitting or any other network request.
I've been working with ASP.NET backends for many years and I have never experienced something like this before. It makes no sense to me.
If I run the backend without the debugger ("start without debugging"), the backend does not crash. It only crashes if I have the debugger on. So it seems like a weird, obscure Visual Studio bug to me.
Anyone experienced something like this before? What might be happening?