Quantcast
Channel: Oracle, MySQL, Sybase, Informix and other databases
Viewing all articles
Browse latest Browse all 1350

Cannot find or load assembly

$
0
0

Good afternoon,

We are moving our applications to server 2012 R2 which has Oracle Client 11.2.0.4.0 installed both 32bit and 64bit. One of the requirements for these servers is only .NET 4.5 and above are to be installed.

What I have done is removed the reference to Oracle.DataAccess.dll from the project, then re-added it pointing to C:\Windows\Microsoft.NET\assembly\GAC_64\Oracle.DataAccess\v4.0_4.112.4.0__89b483f429c47342 or C:\Windows\Microsoft.NET\assembly\GAC_32\Oracle.DataAccess\v4.0_4.112.4.0__89b483f429c47342 

I then recompile and push the changes out to the server, but when trying to run get the error message Could not load file or assembly 'Oracle.DataAccess, Version=2.111.7.0'. Only way I can figure out how to get this to work is add the <runtime> section to the web config, forcing it to use newVersion="4.112.4.0"

Why if I removed the reference of the old DLL and add a new reference pointing to the correct version causes this failure?


Viewing all articles
Browse latest Browse all 1350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>