can you some one please direct me how to resolve the issue.
i am building an application that upload the excel file and read the data from excel and store the value into database in mvc 5 c# .
but i am getting error on
var adapter = new OleDbDataAdapter("SELECT * FROM [Sheet1$]", connectionString);
var ds = new DataSet();
adapter.Fill(ds, "ExcelTable");
getting error on adapter.Fill(ds,"ExcelTable");
6 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Dharmraj ThakurPosted Dec 25, 2017, 6:08 AM
If you see this error: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.
Try one of these:
Leon DPosted Dec 26, 2017, 2:07 AM
Amit KumarPosted Dec 25, 2017, 12:32 PM
Khushboo KumariPosted Dec 25, 2017, 7:53 AM
Khushboo KumariPosted Dec 25, 2017, 7:31 AM
Amit KumarPosted Dec 25, 2017, 6:07 AM