I'm a beginner to using vb.net, on this issue I want to connect Oracle 12c to my visual basic application. I think everything is correct, and the application can also be run. but when i want to test the connection, my console displays an error Exception thrown: 'System.IO.FileNotFoundException' in Hotel.dll
Here is my code :
Imports Oracle.DataAccess.Client
Public Class Form1
Dim con As New OracleConnection
Dim cmd As New OracleCommand
Dim sql As String
Private Sub btntest_Click(sender As Object, e As EventArgs) Handles btntest.Click
dbAccess()
End Sub
Private Sub dbAccess()
con = New OracleConnection
Try
con.ConnectionString = "Data Source=(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = pdborcl))); user id=admin;password=admin"
con.Open()
MsgBox("Connection OK")
Catch ex As Exception
MsgBox("Connection Fail")
End Try
End Sub
End Class
Here is the error :
https://i.ibb.co/443qTQ0/Untitled.png https://i.ibb.co/84D8Rty/Untitledx.png