This discussion is archived
9 Replies Latest reply: Oct 22, 2012 4:09 AM by Tridus RSS

BindingRedirect Oracle.Dataaccess to multiple versions

946372 Newbie
Currently Being Moderated
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

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points