6

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.

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
Miniver Cheevy
  • 1,667
  • 2
  • 14
  • 20
  • I'm seeing this problem but only when running using IIS Express. If I just use Kestrel everything seems OK. – TonE Oct 17 '17 at 12:30
  • I had the same problem. I've fixed it by changing project's Properties/Debug/Web Server Settings/IIS Express Bitness to x64 (instead of Default) – Gutek Nov 17 '17 at 22:27
  • 1
    This occurs for me running Ibm.data.db2.iSeries when trying to instantiate a new instance of the iDB2Connection ins VS 2017. I have tried building x86 and x64 with no success. This occurred out of the blue. – Kentonbmax Jan 02 '18 at 14:22

1 Answers1

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.