.NET connecting to Oracle 9i

70 pts.
Tags:
.NET
.NET development
Oracle 9i
Oracle 9i Enterprise Edition 9.2.0.7.0
Oracle connectivity
Oracle development
Visual Studio 2003
Please Help. I am new to .Net. Using .Net 2003 Oracle 9i Imports Oracle.DataAccess.Client Public Class Form1 Inherits System.Windows.Forms.Form Dim objConnection As OracleConnection = New _ OracleConnection("User Id=system;Password=dax856;Data Source=DMS") Dim objDataAdapter As New OracleDataAdapter Dim objDataSet As DataSet = New DataSet Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' Set the SelectCommand properties... objDataAdapter.SelectCommand = New OracleCommand objDataAdapter.SelectCommand.Connection = objConnection objDataAdapter.SelectCommand.CommandText = _ "Select * From EMP" objDataAdapter.SelectCommand.CommandType = CommandType.Text ' open the data base objConnection.Open() An unhandled exception of type 'Oracle.DataAccess.Client.OracleException' occurred in oracle.dataaccess.dll Additional information: System error. Imports System.Data I am able to connect to the database using the Tool - Connect to Data Base I am not able to connect to the database using the Tool - Connect To Oracle Data Base Regards

Answer Wiki

Thanks. We'll let you know when a new response is added.

Have you debugged your program ?
In what line of your code do you get the unhandled exception error ?

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following