By: Suresh Dasari Dec 21, 2012
Here I will explain “the 'microsoft.ace.oledb.12.0' provider is not registered on the local machine” problem solution in asp.net using C# and VB.NET.
In previous articles I explained Asp.net, C#, VB.NET, SQL interview questions, Send values from one page to another page using QueryString, Joins in SQL Server, Highlight Gridview records based on search and many articles relating to Gridview, SQL ,jQuery,asp.net, C#, VB.NET. Now I will explain how to solve the problem of “the 'microsoft.ace.oledb.12.0' provider is not registered on the local machine” in asp.net using C# and VB.NET.
In one application I got requirement like Read or Import data from excel sheet to gridview and upload excel data to SQL database once implementation completed I tested it in local everything working fine. After that I deployed application in server machine which contains IIS 7 version and tried to run then I got an error like "the 'microsoft.ace.oledb.12.0' provider is not registered on the local machine” that would be like as shown below
We can solve this error by using two methods
1. Open IIS 7 manager and select the application pool corresponding to your application >> Right click on your Application Pool >> Select Advanced Settings like as shown below
2. Once settings opened >> Select an option Enable 32-bit Applications and change option to true
3. Once you set this property restart your application pool and try I hope that problem will fix.
Still if the problem is not fixed check below method
We will get this error whenever server was missing required component to read excel file. To solve this error you need to download the Access database component from Microsoft site and need to install it. Download software from below url
Once office access component installed in your server automatically this error will gone. Everything will work as you expected.
Note: Once this component installed in your server no need to restart your server.
Other Related Posts
- Interview Questions in ASP.NET,C#.NET,SQL Server,.NET Framework
- 3 tier architecture example in asp.net with C#
- Asp.net insert, Edit, update, delete data in gridview
- Introduction to Object Oriented Programming Concepts (OOPS) in C#.net
- Simple login form example in asp.net Check Username and Password availability in database
- Introduction to WCF - WCF tutorial | WCF Tutorial - Windows Communication Foundation | WCF Example | WCF Sample code in asp.net 3.5 | Basic WCF Tutorial for Beginners
- how to insert images into database and how to retrieve and bind images to gridview using asp.net (or) save and retrieve images from database using asp.net
- jQuery 360 Degrees Image Display Plugins Examples with Tutorial
- Asp.net WebService or Creating and Consuming WebService in asp.net or Create and call webservice in asp.net or how to create webservice and how to use webservice in asp.net
- Ajax ModalPopUpExtender Example to edit the gridview row values in asp.net