Check what is inside Types()
On my version, adodb is in uppercase : ADODB
This test works for me =>
Dim assemblyName As String = Application.StartupPath & "\Dependencies\adodb.dll"
Dim assy As Assembly = Assembly.LoadFrom(assemblyName)
Dim Types() As Type = assy.GetTypes()
Dim adodbConnection As Type = assy.GetType("ADODB.ConnectionClass")
Dim adodbRecordset As Type = assy.GetType("ADODB.Recordset")
Dim adodbCommand As Type = assy.GetType("ADODB.Command")
Dim connectString As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" &
Application.StartupPath & "\App_Data\Employees.mdb"
'Application.StartupPath & "\App_Data\OmnitechDB.mdb"
Dim objConnection As Object = Activator.CreateInstance(adodbConnection)
'Dim objConnectString As PropertyInfo = adodbConnection.GetProperty("ADODB.ConnectionString")
Dim openDataBase As MethodInfo = adodbConnection.GetMethod("Open")
' FullName = "ADODB.ConnectionClass.Open(System.String, System.String, System.String, Int32)"
Dim parametersArray() As Object = New Object() {connectString, Nothing, Nothing, Nothing}
openDataBase.Invoke(objConnection, parametersArray)
But it is simpler to add the reference "Microsoft ActiveX Data Objects 6.1 library"
then,
Dim conn As ADODB.Connection = New ADODB.Connection()
Dim connectString As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" &
Application.StartupPath & "\App_Data\Employees.mdb"
conn.Open(connectString)
' code...
conn.Close()