Click here to Skip to main content
Click here to Skip to main content

OLEDB Provider is Not Registered on the Local Machine

By , 8 Jul 2012
 

Introduction

While working with Microsoft Access Database connectivity with ADO.NET, you might have received this error:

  • The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine
  • The 'Microsoft.Jet.oledb.4.0' provider is not registered on the local machine
  • etc.

Background

I got this error when I was connecting ADO.NET with Access 2010 database from Visual Studio 2010 C#.

Problem

Solution

You need to change the Solution Platform from "Any CPU" to "x86". The steps are given below:

  1. Right click on the Solution File in Solution Explorer:

  2. Click on the Configuration Manager.
  3. Click on the Active Platform Drop down, if x86 is already there then select that, else click on New.

  4. Select x86 from the new platform dropdown:

  5. Compile and run your application.

If you are still facing the issue, then try installing Office System Driver.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Shemeer NS
Software Developer (Senior)
India India
Member
Technology Specialist | CodeProject MVP | Author | Geek | Netizen | Husband | ChessPlayer
 
Most of my articles are listed on top 5 of the respective 'Best articles of the month' and some of my articles are published on ASP.NET WebSite's Article of the Day section.
 
Check my contributions in Visual Studio Gallery and Code Project

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
QuestionThanks you, it work for me !memberthichngaodu28 Jan '13 - 0:32 
Thanks you, it work for me !
Answermicrosoft.ace.oledb.12.0 provider is not registered on the local machine.memberJoannou H. Fegarido8 Oct '12 - 18:21 
Try this link for more details: http://www.tesear.com/2012/10/how-to-fix-error-microsoftaceoledb120.html[^]
GeneralRe: microsoft.ace.oledb.12.0 provider is not registered on the local machine.memberShemeer NS8 Oct '12 - 20:45 
Thanks for sharing this url, I will add this url in this post.
 
Installing database engine doesn't solved my problem but this will also work in some cases.
QuestionThe 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machinememberGiri Dasari28 Sep '12 - 1:07 
You can follow these steps to fix the issue.
Open IIS
Click Application Pools menu.
Select your application from the application pool list.
Click Advanced Settings at the right
Set "Enable 32 bit application to true".
Click ok.
That will do it.
AnswerRe: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machinememberShemeer NS28 Sep '12 - 1:31 
Thanks Giri for sharing this. I will check this out...
GeneralThoughtsmemberPIEBALDconsult9 Jul '12 - 3:57 
That may have worked for you in one particular situation, but I don't think it's a general solution.
GeneralRe: ThoughtsmemberShemeer NS9 Jul '12 - 4:01 
you are right it may not be a general solution, there can be some other reason also. But this solution worked for me multiple times.. I thought this solution will help someone so that I poseted.. thanks
GeneralMy vote of 3memberGuillaume Leparmentier8 Jul '12 - 8:01 
More a tip than an article
GeneralRe: My vote of 3memberShemeer NS8 Jul '12 - 10:15 
Thanks for 3... actually it's a tip/trick only.. Smile | :)

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130513.1 | Last Updated 8 Jul 2012
Article Copyright 2012 by Shemeer NS
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid