Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

Thanks in advance.

I have development machine with following configuration:

windows 7, 64 bit .

Oracle server system: 32 bit

Oracle Version :Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production

I am working on windows form application using visual studio 2010 [.NET framework 3.5]

I have reference dll Oracle.DataAccess.dll , version v2.0.50727.

When I run application on development machine I got following exception :
The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception. site:community.oracle.com

Innner exception is : {"The provider is not compatible with the version of Oracle client"}

But when same application I deploy on client machine 32 bit, works fine no exception.

I am trying hard to fix the problem but cant. I tried Oracle.DataAccess.dll version 4 , but still not work, triend Oracle.DataAccess.dll version 2 for 64 bit still not work . Same exception occur everytime.

Please help me.
Posted
Comments
Maciej Los 10-Aug-15 9:19am    
Try to re-compile your project with 'Any CPU' option.
How to: Optimize an Application for a Specific CPU Type

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900