9 Replies Latest reply on Oct 22, 2012 11:09 AM by Tridus

    BindingRedirect Oracle.Dataaccess to multiple versions

      Our application is compiled with Oracle.Dataaccess.dll version 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" ?>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <assemblyIdentity name="Oracle.DataAccess"
      <!-- Assembly versions can be redirected in application,
      publisher policy, or machine configuration files. -->
      <bindingRedirect oldVersion="" newVersion="" />

      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?