【发布时间】:2018-03-12 10:23:48
【问题描述】:
我正在使用 Oracle.DataAccess,并且需要访问旧数据库,这意味着我需要使用该程序集的旧版本。新旧程序集都在 GAC 中,但我似乎无法让应用程序使用旧版本。这是我的 .config 文件:
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Oracle.DataAccess" publicKeyToken="89b483f429c47342"/>
<bindingRedirect oldVersion="2.121.1.0" newVersion="2.112.3.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
fuslogvw 什么都没有显示(就像什么都没有,完全是空的),但我对这个工具不太熟悉,所以也许我使用了错误的(也)。
有什么想法吗?
【问题讨论】:
-
你do this了吗?
-
您确定您的版本号正确吗?旧版本号
2.121.1.0看起来比新版本号2.112.3.0新 -
但这不是应该的样子吗?如果我有 .dll 的 v2 和 v1,但想要绑定到 v1 而不是默认的 v2,那么我设置 oldVersion=v2 和 newVersion=v1 来告诉我的应用程序使用 v1?
标签: c# redirect configuration version .net-assembly