ODP.NET: Runtime error / 0xC0000005 Access Violation During Execution of 64bit .NET Application using 32bit ODP.NET (Doc ID 779482.1)

Last updated on AUGUST 29, 2013

Applies to:

Oracle Data Provider for .NET - Version 9.2.0.1.0 to 11.1.0.7.0
Generic Windows
***Checked for relevance on 29-Aug-2013***

Symptoms

Using Visual Studio .NET to generate 64bit .NET application by usage of build target "Any CPU" and in combination with 32bit Oracle Client and Oracle Data Provider for .NET (ODP.NET) may gives the following error on Windows 64bit (EM64T/AMD64)

The runtime has encountered a fatal error. The address of the error was at <address>, on thread <threadid>. 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.



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms