Visual studio 2010 ';微软.ACE.OLEDB.12.0';提供程序未在本地计算机上注册。excel错误

Visual studio 2010 ';微软.ACE.OLEDB.12.0';提供程序未在本地计算机上注册。excel错误,visual-studio-2010,oledb,excel-2010,oledbconnection,oledbexception,Visual Studio 2010,Oledb,Excel 2010,Oledbconnection,Oledbexception,我使用windows 7 home basic 64位和microsoft excel starter 2010,我想读取excel文件,但调试代码时出现以下错误:本地计算机上未注册“microsoft.ACE.OLEDB.12.0”提供程序。 我的代码如下: protected void Page_Load(object sender, EventArgs e) { GridView1.DataSource=getirExcel(); GridView1.DataBind();

我使用windows 7 home basic 64位和microsoft excel starter 2010,我想读取excel文件,但调试代码时出现以下错误:
本地计算机上未注册“microsoft.ACE.OLEDB.12.0”提供程序。
我的代码如下:

protected void Page_Load(object sender, EventArgs e)
{
    GridView1.DataSource=getirExcel();
    GridView1.DataBind();
}
DataTable getirExcel()
{
    string dosya_adres = @"C:\Users\Erdi\Downloads\DBE_BAKIM_FORMU.xlsx";
    OleDbConnection baglanti = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + dosya_adres + ";Extended Properties=Excel 12.0");
    baglanti.Open();
    string query = "select * from [Sheet1$A1:D20]";
    OleDbDataAdapter oAdp = new OleDbDataAdapter(query, baglanti);
    DataTable dt = new DataTable();
    oAdp.Fill(dt);
    return dt;
}
我试过
Microsoft.JET.OLEDB.4.0
,但据论坛介绍,它在64位上不起作用。你知道其他的供应商吗


提前感谢。

您需要在此处安装数据库引擎:

您需要在此处安装数据库引擎: