Karthik Kumar K V
Karthik Kumar K V

Reputation: 43

Error while using ODAC112040Xcopy_64bit Oracle.DataAccess.dll with Asp.net 4.6 framework

I am using 64bit Oracle.DataAccess.dll (64-bit ODAC 11.2 Release 6 (11.2.0.4.0) Xcopy for Windows x64). Downloaded this package ODAC112040Xcopy_64bit.zip from

http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html.

I want to connect to Oracle 11g Database using the provider dll. I was able to install it successfully. However, when I use the dll in my Asp.net code, I am getting following error.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Oracle.DataAccess, Version=2.112.4.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.

My system is a Windows 7, 64bit machine. Using Visual Studio 2015. Even before the program execution reaches the function calls of Oracle.DataAccess.dll, I get this error as soon as the page loads.

Have seen many blogs with answers saying, 64-bit dll being used on 32-bit machine or 32-bit enabled IIS Website etc. My requirement is, need only 64bit dll to be executed on 64bit machine.

Please let me know how to fix the issue.

Upvotes: 0

Views: 929

Answers (1)

JGH
JGH

Reputation: 17846

The error message says it is looking for Version=2.112.4.0, which is for .net 2 (and 3). The title of your post mentions .net 4.6, so you should be targeting Version=4.112.4.0 in your visual studio project

Upvotes: 1

Related Questions