简体   繁体   English

使用C#连接Oracle数据库

[英]Connecting Oracle database with C#

While adding reference to a dll file called oracleDataAccess.dll to my project I get an error. 在我的项目中添加对名为oracleDataAccess.dll的dll文件的引用时,出现错误。

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. 我有将c#与oracle连接的代码,该代码是从本站点获得的。

Help me out to solve this problem. 帮我解决这个问题。 I am using visual studio ultimate 2012. 我正在使用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 看到这个: 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. Oracle数据访问组件非常特定于它们使用的.NET版本。 Since you're using a newer version of Visual Studio/.NET, did you try getting an updated version of the ODAC tools? 由于您使用的是Visual Studio / .NET的较新版本,因此您是否尝试获取ODAC工具的更新版本?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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