iisexpress crash triggered by the client web browser. The error is "the program iisexpress exe has exited with code 0xc0000005 access violation"


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.

asked on Stack Overflow Feb 20, 2020 by Guy

1 Answer


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.

answered on Stack Overflow Feb 20, 2020 by Guy

User contributions licensed under CC BY-SA 3.0