Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
458 views
in Technique[技术] by (71.8m points)

c# - 未在本地计算机上注册“ Microsoft.ACE.OLEDB.12.0”提供程序('Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine)

I'm trying to get data from an Excel file on a button click event.

(我正在尝试在按钮单击事件中从Excel文件获取数据。)

My connection string is:

(我的连接字符串是:)

 string connString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\source\SiteCore65\Individual-Data.xls;Extended Properties=Excel 8.0;";

When I click on the button, I got the following error:

(当我单击按钮时,出现以下错误:)

The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.

(“ Microsoft.ACE.OLEDB.12.0”提供程序未在本地计算机上注册。)

I have no clue how to fix this.

(我不知道如何解决这个问题。)

My operating system is Windows 7.

(我的操作系统是Windows 7。)

  ask by Shailesh Sahu translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Well, you need to install it.

(好,您需要安装它。)

You're looking for:

(您正在寻找:)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...