My Oracle Support Banner

'System.BadImageFormatException: Could not load file or assembly' when Running Tests Inside Visual Studio (Doc ID 1309925.1)

Last updated on NOVEMBER 18, 2019

Applies to:

Oracle Data Provider for .NET - Version 10.2.0.3.02 and later
Microsoft Windows x64 (64-bit)
Visual Studio 2008

Symptoms

The Visual Studio 2008 application works when the run-time executable is launched.  But, when the Visual Studio Test menu is used to run tests against the application the following error occurs:


The application is using 64-bit Oracle Client Software and a 64-bit interface such as the Oracle Data Provider for .NET (ODP.NET).

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.