Unable to debug Blazor in Visual Studio

Chilberto 231 Reputation points
2020-11-07T01:51:14.59+00:00

Until recently I have been able to debug Blazor projects without issue in Visual Studio. I am now receiving a stack overflow when trying to rebuild the project

Stack overflow.
C:\Program Files\dotnet\sdk\3.1.403\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Microsoft.NET.Sdk.Razor.Component.targets(106,5): error : rzc generate exited with code -1073741571.

I am able to build and run the project though from the command line using "dotnet run".

I have also updated my VS 2019 to the latest version (at the time of writing 16.7.7). I have restarted the machine also.

Anyone else encountering this issue?

Developer technologies | Visual Studio | Debugging
0 comments No comments
{count} votes

Accepted answer
  1. Chilberto 231 Reputation points
    2020-11-07T01:53:51.92+00:00

    Turns out that it was JustMock. If I enable the profiler then I am no longer able to build or debug the project. With the profiler disabled, I am.

    Hopefully this will help someone else as I would not expect this type of conflict. Please post if you have any idea how to get JustMock to play nicely with Blazor projects.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.