dotnet.exe has exited - Access violation

3

After upgrading .NET core from 2.0 to 2.1 I started getting following error when running the tests:

The program '[12372] dotnet.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.

When in debug mode VS just exits debug mode and prints the message above in the output -> Debug window.

The error happens when stepping over httpClient.SendAsync(...).

I think this might be the same issue.

Running the test via dotnet test shows:

The active test run was aborted. Reason: Process is terminating due to StackOverflowException.

Update

The issue was caused by a bad IoC mapping.

c#
.net-core
asp.net-core-2.1
asked on Stack Overflow Nov 30, 2018 by Răzvan Flavius Panda • edited Dec 3, 2018 by Răzvan Flavius Panda

1 Answer

1

In my case there was a hidden endless recursion. I was overriding the == operator and then within that override I was using the == operator without noticing the irony! As @jdweng suggests use breakpoints to drill down into the problem area. It can be well hidden!

answered on Stack Overflow Jun 9, 2020 by Chad Hedgcock • edited Jun 9, 2020 by Chad Hedgcock

User contributions licensed under CC BY-SA 3.0