I am using Microsoft.Jet.OleDb.4.0 to read through a csv file. I compare the information inside and if it meets certain criteria add it to a dropdown. My problem is that Microsoft.Jet.OleDb.4.0 is only compatible with x86. However, I have other functions that need to run as x64. Is there an update or an alternative to do this?
below is my code. Which currently works if I am in x86.
DataTable dataTable = new DataTable("table1");
using (OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0; Data Source = " + Directory.GetCurrentDirectory() + "; Extended Properties = \"Text;HDR=YES;FMT=Delimited\""))
{
    conn.Open();
    string strQuery = "SELECT * FROM [" + "report.csv" + "]";
    OleDbDataAdapter adapter = new System.Data.OleDb.OleDbDataAdapter(strQuery, conn);
    adapter.Fill(dataTable);
    foreach (DataRow rows in dataTable.Rows) {
        if (rows[1].ToString() == "False")
        {
            unlicensed.Items.Add(rows[0].ToString());
        }
        if (rows[2].ToString() == "False")
        {
            litigation.Items.Add(rows[0].ToString());
        }
    }
}
 
     
     
     
     
     
     
     
     
    