private void button2_Click(object sender, EventArgs e)
{
try
{
OleDbConnection connection = new OleDbConnection();
connection.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;
Data Source= \\testadev.000webhostapp.com \ Database3.accdb";
connection.Open();
connection.Close();
}
catch (Exception ex)
{
MessageBox.Show("Error : " + ex);
}
}
I'm getting this error
I don't know if the ConnectionString is well used, probably that's the problem. The database is made in Acces 2016 without any password . Please, can you tell me where is the problem ?
Accessing datafile via HTTP is not supported.
If you want connect do datafile of Access, you need to do it via local file or network file. The network file can be accessed through UNC path.