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 OCTOBER 07, 2022

Applies to:

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


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).


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

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