抛出异常:Oracle.DataAccess.dll / Visual Studio 2015(VB.net)中的“System.ArgumentException” [英] Exception thrown: 'System.ArgumentException' in Oracle.DataAccess.dll / Visual Studio 2015 (VB.net)

查看:72
本文介绍了抛出异常:Oracle.DataAccess.dll / Visual Studio 2015(VB.net)中的“System.ArgumentException”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

小组,

关于连接Oracle数据库,我有很多疑问。  

I have multiple questions regarding connecting to an Oracle database.  

我正在编写第一个使用Oracle数据库的应用程序。  我试图添加连接,但我没有在SQL Server对象资源管理器中看到它。  所以第一个问题是: 它真的安装了吗?  如果没有,将Oracle数据库添加到项目的正确
步骤是什么?

I'm writing my first app that will use an Oracle database.  I've attempted to add the connection but I don't see it listed in the SQL Server Object Explorer.  So the first question is:  Is it really installed?  If not, what are the correct steps to add the Oracle database to the project?

假设它已安装,我遇到了"Exception thrown:" Oracle.DataAccess.dll中的System.ArgumentException'尝试测试我非常简单的代码时出错。  阅读各种网站表明这可能与32/64位问题有关。
 我使用的机器是Windows 7企业版,32 GB内存和64位操作系统。

Assuming it is installed, I'm experiencing the "Exception thrown: 'System.ArgumentException' in Oracle.DataAccess.dll" error when trying to test my very simple code.  Reading various sites indicate this may be related to a 32/64 bit issue.  My machine I'm using is Windows 7 Enterprise, 32 GB of RAM, and a 64 bit Operating System.

因为它与Visual Studio中的设置有关,我已将目标CPU设置为"AnyCPU"。  我已经尝试检查并取消选中"首选32位"复选框。  这没有改变这个问题。

As it relates to settings in Visual Studio, I've set the Target CPU to "AnyCPU".  I've tried checking and unchecking the "Prefer 32-bit" checkbox.  That has not changed the issue.

在"参考文献"中区域,我添加了"OLE自动化","Oracle Administration Assistant 1.0类型库","Oracle数据控制","Oracle.DataAccess"等。和"OraOLEDB1.0类型库"。  我已经包含
.NetFramework \v4.5

In the "References" area, I've added "OLE Automation", Oracle Administration Assistant 1.0 Type Library", "Oracle Data Control", "Oracle.DataAccess" and "OraOLEDB1.0 Type Library".  I have included the .NetFramework\v4.5

我已尝试就此问题与Oracle联系。  他们把我推荐给微软。  你能帮忙吗?

I've tried contacting Oracle about the issue.  They've referred me back to Microsoft.  Can you help?

这个应用很短。  如果我需要从头开始,我会。  这主要是一次学习练习,所以我没有做太多。  我现在只是尝试连接到服务器并将一些数据导入组合框,因为这是
首次测试。  

This app is very short.  If I need to start over from scratch I will.  This was primarily a learning exercise, so I haven't built much.  I'm at this point only attempting to connect to the server and import some data into a combobox as this first test.  

你能帮我解决这个问题吗?

Can you help me get this working?

提前感谢你的帮助。

Don Wilson

Don Wilson

推荐答案

您好Don Wilson,

Hi Don Wilson,

感谢您的帖子。

>>我试图添加连接,但我没有在SQL Server对象资源管理器中看到它。  所以第一个问题是: 它真的安装了吗?  若否,将Oracle数据库添加到项目的正确步骤是什么?

据我所知,您需要Visual Studio(ODT)的Oracle开发者工具,因此您可以在VS内的服务器资源管理器中看到它。

http://www.oracle.com/technetwork/developer- tools / visual-studio / overview / index.html

对于您的其他问题,因为一个问题的一个主题。我建议你最好把新帖子发给其他问题。

For your other questions, since one thread for one issue. I suggest you'd better post a new thread to other quesitons.

感谢您的理解。

最诚挚的问候,

Lake Xiao

Lake Xiao


这篇关于抛出异常:Oracle.DataAccess.dll / Visual Studio 2015(VB.net)中的“System.ArgumentException”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆