卸载后,Oracle.DataAccess仍尝试访问oraops12.dll [英] Oracle.DataAccess still try to access oraops12.dll after uninstall

查看:331
本文介绍了卸载后,Oracle.DataAccess仍尝试访问oraops12.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我的计算机上同时具有11和12的oracle客户端.但是当我尝试使用11g版本的oracle.dataacess.dll时.

First I have both 11 and 12 oracle client on my machine. But when i try to use 11g version of oracle.dataacess.dll .

我已经删除了regedit上的12c寄存器,并停止了与service和machince.config相关的操作. 但是程序被抛出无法加载oraops12.dll ..".

I already remove a 12c register on regedit and stop service and machince.config related. but the program was throw "Unable to load oraops12.dll..".

oracle.dataacess在哪个路径中找到dll的配置? 为什么仍然尝试加载oraops12而不是oraops11.

Which path that oracle.dataacess find a config for dll? Why did it still try to load oraops12 not oraops11.

谢谢.

推荐答案

您的GAC中有一个策略文件正在使用"bindingRedirect"标记

There is a policy file in your GAC that is using the "bindingRedirect" tag

策略2.112.Oracle.DataAccess.config

Policy.2.112.Oracle.DataAccess.config

搜索文件(我使用Agent Ransack),然后进行编辑.

Do a search for the file (I use Agent Ransack) then edit it.

文件内容如下

<configuration>
   <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
          <assemblyIdentity name="Oracle.DataAccess" publicKeyToken="89B483F429C47342"/>
            <bindingRedirect oldVersion="2.112.2.0-2.112.9999.9999" newVersion="2.121.1.0"/>
        </dependentAssembly>
      </assemblyBinding>
   </runtime>
</configuration>

由于某种原因,如果您安装Oracle 12,然后尝试将其卸载(即使使用gacutil.exe/u),则将保留绑定重定向.

For some reason, if you install Oracle 12, then try and uninstall it (even using gacutil.exe /u), the binding redirect is left in.

在我的计算机上,它位于C:\ Windows \ assembly \ GAC_32 \ Policy.2.112.Oracle.DataAccess \ 2.121.2.0__89b483f429c47342 \ Policy.2.112.Oracle.DataAccess.config

On my machine, it was in C:\Windows\assembly\GAC_32\Policy.2.112.Oracle.DataAccess\2.121.2.0__89b483f429c47342\Policy.2.112.Oracle.DataAccess.config

无法通过资源管理器进行访问,请使用代理点播进行跟踪,然后右键单击它并在编辑器中将其打开.

It is inaccessible via explorer, use agent ransack to track it down, then right click it and open it in an editor.

这篇关于卸载后,Oracle.DataAccess仍尝试访问oraops12.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆