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.
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With