【问题标题】:How do I use a version of ODP.NET different to the one I built with?如何使用与我构建的版本不同的 ODP.NET 版本?
【发布时间】:2010-12-23 05:57:33
【问题描述】:

我有一个使用 ODP.NET 2.111.6.20 构建的应用程序 - VS 中的所有引用都设置为特定版本为 false,但是当我尝试在只有 2.111.6.0 的机器上运行该应用程序时,它抛出一个错误,说它找不到 2.111.6.20 程序集。如何让我的应用在任何版本的 ODP.NET 2.111 上运行?

【问题讨论】:

    标签: oracle odp.net assemblyversions


    【解决方案1】:

    我想程序集是强签名的,所以你得到了例外。您可以在 app.config 文件中使用 binding redirect

    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="ODP.NET"
                                  publicKeyToken="PUT THE PUBLIC TOKEN HERE"
                                  culture="neutral" />
                <bindingRedirect oldVersion="2.111.6.20"
                                 newVersion="2.111.6.0" />
            </dependentAssembly>
        </assemblyBinding>
    </runtime>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多