Welcome, Guest
Username: Password: Remember me

TOPIC: Discuss connecting to oracle database using C#

Discuss connecting to oracle database using C# 6 years 5 months ago #15

  • shabdar
  • shabdar's Avatar
  • OFFLINE
  • Administrator
  • Posts: 79
  • Thank you received: 14
  • Karma: 7
Discuss connecting to oracle database using C#. Click Reply button below.
The administrator has disabled public write access.

Connect to Oracle using ASP.Net and C# or VB.Net 6 years 13 hours ago #135

sir..! im getting the following Exception

System.BadImageFormatException

i have used the following code

Imports Oracle.DataAccess.Client
Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Try
Dim oradb As String = "Data Source=oracle;User Id=sriram;Password=sriram;"
Dim conn As New OracleConnection(oradb)
conn.Open()
Catch ex As Exception
Label1.Text = ex.ToString()
End Try
End Sub
End Class

please tell me how to connect to oracle 10g correctly sir.. because im facing dis problem from so many days n do not found any solution..
please help me sir
The administrator has disabled public write access.
Time to create page: 0.097 seconds