简体   繁体   中英

Connecting Oracle database with C#

While adding reference to a dll file called oracleDataAccess.dll to my project I get an error.

A reference to a higher version or incompatible assembly cannot be added to the project.

I have the code for connecting c# with oracle which I got from this site.

Help me out to solve this problem. I am using visual studio ultimate 2012.

Change your version to the higher framework, rigth click on your project, change the framework, fix the references and recompile. If you have dependencies, first do the dependencies. See this: http://msdn.microsoft.com/en-us/library/bb772098%28v=vs.90%29.aspx

The Oracle Data Access Components are very specific to which versions of .NET they use. Since you're using a newer version of Visual Studio/.NET, did you try getting an updated version of the ODAC tools?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM