When developing a Web appication, a button on the web client started crashing the application.
The VS Debug seesion and the Client browser close together. VS 2019 debug output shows the following error (no other information is available on client or server):
The program '[23396] iisexpress.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.
This bypasses all try/catch which makes it difficult to debug.
I got this error because of an infinite recursive call.
To pinpoint such a bug add breakpoints and log lines (or step into)!!!
In my case, by mistake, a get property returned itself under some conditions.
This crash of Visual Studio Debug session naturally closes the Web Browser (opened by VS) which adds to the confusion. It's as if the client side crashed.
Only if you keep another browser session connected to localhost://nnnnn you see that it is the server that crashes.
User contributions licensed under CC BY-SA 3.0