Search code examples
blazorbreakpointsblazor-server-sidevisual-studio-2022razor-component-library

Blazor - "Aw, Snap! Error code: STATUS_ACCESS_VIOLATION" error if breakpoint is set


I have a Blazor server-side app, which uses my component library as a project reference.

If I set a breakpoint in code of a component from the library and run in debug mode, my app start page is shortly shown then Aw Snap! error occurs.

If I run app and then set or enable the breakpoint, everything works correctly.

What can cause the error? How to rid of it?

Debug in VS 2022 with IIS, Google Chrome 96.0.4664.45 x64


Solution

  • The problem occures when the option 'Javascript-Debugging for ASP.NET' is activated. I got rid of the problem by deactivating this option in VS.