Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

C# .NET FileNotFoundException - Could not load ... Oracle.DataAccess

711096Apr 22 2010 — edited Apr 22 2010
Problem: Immediately after starting my C# app under VS2005 a System.IO.FileNotFoundException is thrown with the description:

*{"Could not load file or assembly 'Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.":"Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342"}*


My Environment:

PC OS = Windows 7 x64
Dev Host = Windows 7 XP Mode (Windows XP SP3 running under MS VirtualPC)

Installed under XP Mode:
- Dev Environ = Visual Studio 2005 Pro SP1
- Oracle Client = 10gR2 10.2.0.1.0 + Patch Set 1 10.2.0.2.0 + Patch Set 3 10.2.0.4.0
- ODAC = 10.2.0.2.21

I have already changed my VS2005 C# projects so that the DLL assembly and the app are explicitly built for the x86 platform.

The project's Oracle.DataAccess Reference is to Version *2.102.2.20*, with Path C:\oracle\product\10.2.0\client_2\odp.net\bin\2.x\Oracle.DataAccess.dll and with Copy Local = False. This DLL file exists and is the correct version.

As expected/desired, my PATH environment variable starts with:

Path=C:\oracle\product\10.2.0\client_2\bin;C:\oracle\product\10.2.0\client_1\bin;C:\WINDOWS\system32;...

My Registry HKLM\SOFTWARE\ORACLE\ODP.NET\2.102.2.20\DllPath = C:\oracle\product\10.2.0\client_2\bin

--
Alex

Edited by: AlexMadarasz on Apr 22, 2010 8:35 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 20 2010
Added on Apr 22 2010
4 comments
5,387 views