Connection to Database .DBF using C #

0

I am developing a Windows Form application and I need to connect it to a database with a .DBF extension.

Based on this question and esta page I developed the following code:

OleDbConnection Conn = new OleDbConnection
{
    ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:/ruta;Extended Properties=dBASE IV;User ID=usr;Password=pss;"
};

try
{
    Conn.Open();
}
catch (OleDbException e)
{
    Console.WriteLine(e.Message);
}
finally
{
    Conn.Close();
}

This gives me the console the error:

No se puede iniciar la aplicación. Falta el archivo de información del grupo de trabajo o bien está abierto en modo exclusivo por otro usuario.

I have searched the internet and insist that I have the BD in question open but it is not like that. Any ideas of what I can do?

    
asked by Adan Sandoval 12.06.2018 в 20:35
source

0 answers