title: Error message "external table is not in the expected format" when I tried to upload file in C# program
body: <p>I am creating a C# program where I can browse and view the file into a datagridview in C#. I've been tested it for so many times and it worked well. But yesterday when I tried to do it again an error messaged displayed stating "<strong>Provider=Microsoft.Jet.OLEDB.4.0;</strong>". The file that I am testing is the same file that I used before(with no errors). I didn't do anything with the file(excel file).</p>
  
  <p>This is the print screen of the error message:
  <img src="https://i.stack.imgur.com/6FTEK.png" alt="enter image description here"></p>
  
  <p>This is the code I used:</p>
  
  <pre><code> private void buttonUpload_Click(object sender, EventArgs e)
      {
          string OleDBConnection = String.Format(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Extended Properties=""Excel 8.0;HDR=YES;IMEX=1;""", textBoxFileName.Text);
  
          string query = String.Format("select * from [{0}$]", "Sheet1");
  
          OleDbDataAdapter dataAdapter = new OleDbDataAdapter(query, OleDBConnection);
  
          DataSet dataSet = new DataSet();
  
          dataAdapter.Fill(dataSet);
  
          dataGridView1.DataSource = dataSet.Tables[0];
  
      }
  </code></pre>