Home » Infrastructure » Windows » error regarding oracle connection (oracle 9i)
error regarding oracle connection [message #584889] Mon, 20 May 2013 06:03 Go to next message
cvasanth07
Messages: 1
Registered: May 2013
Location: chennai
Junior Member
error regarding oracle connection

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oradb As String = "Data Source=CallTaxi; UserName = SCOTT; Password=TIGER ;"

Dim conn As New OracleConnection(oradb)
conn.Open()
Dim cmd As New OracleCommand
'Dim da As OracleDataAdapter
cmd.Connection = conn
cmd.CommandText = "select Land_Name from taxi_Landmarkmaster"
cmd.CommandType = CommandType.Text
Dim dr As OracleDataReader = cmd.ExecuteReader()
dr.Read()
cboRequstClass.Text = dr.Item("Land_Name")
conn.Dispose()
End Sub
End Class

Error msg:
The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception.
Re: error regarding oracle connection [message #584908 is a reply to message #584889] Mon, 20 May 2013 07:52 Go to previous message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Without the exception itself we cannot help.

Regards
Michel
Previous Topic: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Next Topic: ORACLE error 29277 in FDPSTP Cause: FDPSTP failed due to ORA-29277: invalid SMTP operation ORA-065
Goto Forum:
  


Current Time: Thu Mar 28 17:12:49 CDT 2024