错误“无法找到请求的 .Net Framework 数据提供程序。它可能未安装”
我使用的是 Visual Studio 2008 和 Oracle 数据库 10g。
我尝试像这样连接到后端:
子窗口“服务器资源管理器”。按下“连接到数据库”按钮并创建下一个链 数据连接->选择数据源->Oracle数据库->oracle Data provider for .Net->继续->数据源名称:oraclexe->用户名:hr密码:hr->测试连接(回答“测试连接成功”)-> 按钮“确定”并且:
"Unable to find the requested .Net Framework Data Provider. It May not be installed"
我已对 machine.config 进行了更改
<add name="Oracle Data Provider for .NET"
invariant="Oracle.DataAccess.Client" description="Oracle Data Provider for .NET"
type="Oracle.DataAccess.Client.OracleClientFactory,
Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342" />
,但同样的错误仍然存在。该怎么办?
I am using Visual Studio 2008 and oracle database 10g.
I trying to connect to the backend like this:
Subwindow "Server explorer". Push button "Connect to database" and make next chain
Data Connection->Choose Data Source->Oracle Database->oracle Data provider for .Net->Continue->Data Source name : oraclexe->Userneme: hr password: hr -> Test connection (answer "Test connected succeeded ")->push button OK and:
"Unable to find the requested .Net Framework Data Provider. It May not be installed"
I have made changes to machine.config
<add name="Oracle Data Provider for .NET"
invariant="Oracle.DataAccess.Client" description="Oracle Data Provider for .NET"
type="Oracle.DataAccess.Client.OracleClientFactory,
Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342" />
But then to same error persists. What to do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Oracle 数据提供者特定于架构。如果您下载 64 位驱动程序,则需要将应用程序构建为 64 位(如果目标操作系统为 64 位,则构建为 AnyCPU)。
问题是Visual Studio是32位的,所以你还需要安装32位的驱动程序。
Oracle data providers are specific for an architecture. If you download a 64-bit driver you need to build your application as 64bit (or AnyCPU if the target OS is 64bit).
The problem is that Visual Studio is 32-bit, so you also need a 32bit driver installed.
一些建议:
http://www.oracle.com/technology/software/tech /windows/odpnet/index.html 因为您没有指定安装了客户端文件。
总之,您可能使用一个版本的驱动程序作为设计工具,而使用另一个版本的驱动程序作为底层连接。我知道这听起来很奇怪,但我已经遇到过好几次了。唯一的出路就是把它拆开。如果您从 ADO.NET 基本连接测试开始,您就会发现问题。
下面是一个简单的入门连接。
谢谢,
奥尔多
A couple of suggestions:
http://www.oracle.com/technology/software/tech/windows/odpnet/index.html since you did not specify that you have the client files installed.
In summary, you are probably using one version of the driver for the design tool and another for the underlying connections. I know this sounds weird but I've run into it several times already. The only way forward is to take it apart. If you start with an ADO.NET base connection test you'll find the problem.
Below is a simple connection to get started.
Thanks,
Aldo