title: Reading from Excel: Microsoft.Jet.OLEDB.4.0 error on 64 bit systems
body: <p>I am reading the contents of an excel sheet in my application using:</p>
  
  <pre><code> OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + fileName + ";Extended Properties=Excel 8.0");
   _myDataSet = new DataSet();
   OleDbDataAdapter myCommand = new OleDbDataAdapter(" SELECT * FROM [" + "My Sheet" + "$]", con);
  
  myCommand.Fill(_myDataSet);
  con.Close();
  </code></pre>
  
  <p>This is failing in 64 bit systems with the error:</p>
  
  <blockquote>
    <p>Microsoft.Jet.OLEDB.4.0' provider is
    not registered on the local machine</p>
  </blockquote>
  
  <p>How to make this work in 64 bit machines?</p>