Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

BindingRedirect Oracle.Dataaccess to multiple versions

946372Oct 16 2012 — edited Oct 22 2012
Our application is compiled with Oracle.Dataaccess.dll version 4.112.2.0 on the other hand the customers Oracle clients can be 10g or 11g and the GAC version of Oracle.Dataaccess.dll may varied according to the Oracle installation.

If I use the app.config to redirect the dll, then I have to know in advance the GAC version and it will look like this:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Oracle.DataAccess"
publicKeyToken="89b483f429c47342"/>
<!-- Assembly versions can be redirected in application,
publisher policy, or machine configuration files. -->
<bindingRedirect oldVersion="4.112.2.0" newVersion="4.112.3.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

but what we need is newVersion="x.x.x.x" or newVersion="y.y.y.y" or newVersion="z.z.z.z"

Is there is a way to do this without loading the dll explicitly in run-time by code?

Thanks,
Yair
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 19 2012
Added on Oct 16 2012
9 comments
3,068 views