Oracle.DataAccess still trying to access oraops12.dll files after uninstall

At first I have both 11 and 12 oracle on my machine. But when I try to use the 11g version of oracle.dataacess.dll.

I already delete the 12c register on regedit and stop the service as well as machince.config. but the program was thrown "Unable to load oraops12.dll ..".

What is the path that oracle.dataacess will find for the dll? Why is he still trying to download oraops12 not oraops11.

Thanks in advance.

+6
source share
3 answers

Your GAC has a policy file that uses the "bindingRedirect" tag

Policy.2.112.Oracle.DataAccess.config

Do a file search (I use the Ransack agent), then edit it.

The contents of the file are as follows:

<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> 

For some reason, if you are installing Oracle 12, try and remove it (even using gacutil.exe / u), the binding redirection remains.

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

It is not accessible through explorer, the ransack agent is used to track it, then right-click and open it in the editor.

+6
source

I had this problem. Make sure to delete all policy folders and oracle.dataaccess folders starting from 2.12 in assembly c: \ windows \ assembly and c: \ windows \ Microsoft.net \. 2.11x means oracle 11.x and 2.12x means Oracle 12.x.

+1
source

I had the same issue in Windows Server 2012 ...

I solved everything just intending C ++ Redistributable Package 2010

0
source

Source: https://habr.com/ru/post/980662/


All Articles