My Oracle Support Banner

HOWTO Run multiple versions of ODP.NET side by side in multiple applications (Doc ID 1382336.1)

Last updated on OCTOBER 05, 2022

Applies to:

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


   The goal of this note is to provide information on controlling which version of Oracle Data Provider for .NET is loaded by an application, so that multiple versions of  ODP.NET can be used simultaneously in side by side applications.


   .NET application security dictates that an application will only run with the version of an assembly it was compiled with.  In order to allow for the use of newer patched assemblies without recompiling the application, the publisher of an assembly can provide a Publisher Policy file that redirects applications looking for an older version to a newer version.

   By default, ODP.NET installs Publisher Policy files into the Global Assembly Cache (GAC) during product installation.  As a result, installing a newer version of ODP.NET for use with a new "application B" just developed may also inadvertently make existing "application A" also use the newer version, which may or may not be the desired behavior. 

  Some notes regarding the policy files and redirection:


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.