Managed Debugging Assistant 'FatalExecutionEngineError' 0xc0000005

4

Managed Debugging Assistant 'FatalExecutionEngineError' : 'The runtime has encountered a fatal error. The address of the error was at 0x641ad419, on thread 0x5d0c. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.'

This only seems to happen using Asp.Net Core 1.1 and only with entity framework for .net (not EF Core). It also does not happen all of the time, but when it does it's always during an EF call.

I've tried enabling "Use Managed Compatibility Mode" as described here, but it doesn't seem to make a difference.

visual-studio
entity-framework
visual-studio-2017
asp.net-core-1.1
asked on Stack Overflow Sep 13, 2017 by Miniver Cheevy

2 Answers

1

I was getting "FatalExecutionEngineError' : 'The runtime has encountered a fatal error. The address of the error was at 0x72d41302, on thread 0x4520. The error code is 0xc0000005" while running a simple hello world application in Visual Studio 2017.

Resolved the issue by using x64 mode for debug.

answered on Stack Overflow Apr 20, 2018 by RedBottleSanitizer
0

This error occurs if there is a type mismatch in your code. My problem solved such as this. I recommend you to review your code like this issue.

answered on Stack Overflow Dec 25, 2020 by Ceyhun Cozvelioglu

User contributions licensed under CC BY-SA 3.0