title: Failed to create file - excel to gridview
body: <p>I have the next code:</p>
  
  <pre><code>   &lt;asp:gridview id="GridView1" runat="server" cellpadding="6" gridlines="None" 
      bordercolor="#336699" borderstyle="Solid" borderwidth="1px"&gt;
  
      &lt;headerstyle backcolor="#336699" font-bold="True" forecolor="White" /&gt;
      &lt;/asp:gridview&gt;
  </code></pre>
  
  <p>And code behind:</p>
  
  <pre><code>    protected void Page_Load(object sender, EventArgs e)
  {
      string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|App_Data|Machreta.xls;Extended Properties='Excel 8.0;HDR=Yes;'";
  
      string query = "SELECT * FROM [Sheet1$]";
  
      DataSet excelDataSet = new DataSet();
      OleDbDataAdapter da = new OleDbDataAdapter(query, strConn);
  
      da.Fill(excelDataSet);
  
      GridView1.DataSource = excelDataSet;
      GridView1.DataBind();
  
  }
  </code></pre>
  
  <p>I'm get the error:</p>
  
  <blockquote>
    <p>Failed to create file</p>
  </blockquote>
  
  <p>To the line:</p>
  
  <blockquote>
  <pre><code>    da.Fill(excelDataSet);
  </code></pre>
  </blockquote>
  
  <p>why?</p>