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: 58499
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: Wed Jul 23 09:58:05 CDT 2014

Total time taken to generate the page: 0.13245 seconds