Click here to Skip to main content
11,719,903 members (85,140 online)
Click here to Skip to main content

OLEDB Provider is Not Registered on the Local Machine

, 8 Jul 2012 CPOL 170.9K 3
Rate this:
Please Sign up or sign in to vote.
Solution for Exception: The 'Microsoft.ACE.OLEDB.12.0' 'Microsoft.Jet.oledb.4.0' provider is not registered on the local machine.

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)

Share

About the Author


You may also be interested in...

Comments and Discussions

 
QuestionWhy do we need to change platform to * 86? will my software work on every CPU? Pin
tommmmmy3-Apr-15 8:21
membertommmmmy3-Apr-15 8:21 
GeneralRe: Why do we need to change platform to * 86? will my software work on every CPU? Pin
PIEBALDconsult3-Apr-15 8:40
protectorPIEBALDconsult3-Apr-15 8:40 
Answeralternate solution Pin
skannan7418-Mar-15 0:50
memberskannan7418-Mar-15 0:50 
AnswerIn my case I can't switch my application from 64-bit to 32-bit. i found my solution as described below. Pin
rahul-techie12-Feb-15 22:21
memberrahul-techie12-Feb-15 22:21 
QuestionThanks. It worked for me :) Pin
Jerin Kurian3-Dec-14 18:01
memberJerin Kurian3-Dec-14 18:01 
QuestionOLEDB Provider is Not Registered on the Local Machine Pin
ckarstedt7-Oct-14 12:44
memberckarstedt7-Oct-14 12:44 
QuestionGreat Work Pin
ImranSyed30-Sep-14 18:18
memberImranSyed30-Sep-14 18:18 
GeneralMy vote of 5 Pin
Avelino Ferreira28-Jul-14 9:23
memberAvelino Ferreira28-Jul-14 9:23 
GeneralRe: My vote of 5 Pin
AIturralde9-Sep-14 9:29
memberAIturralde9-Sep-14 9:29 
Answersolution Pin
info.mohamed27-Apr-14 1:03
memberinfo.mohamed27-Apr-14 1:03 
QuestionThanks you, it work for me ! Pin
thichngaodu28-Jan-13 0:32
memberthichngaodu28-Jan-13 0:32 
AnswerRe: Thanks you, it work for me ! Pin
Maimonides15-Aug-13 1:42
professionalMaimonides15-Aug-13 1:42 
Answermicrosoft.ace.oledb.12.0 provider is not registered on the local machine. Pin
Joannou H. Fegarido8-Oct-12 18:21
memberJoannou H. Fegarido8-Oct-12 18:21 
GeneralRe: microsoft.ace.oledb.12.0 provider is not registered on the local machine. Pin
Shemeer NS8-Oct-12 20:45
memberShemeer NS8-Oct-12 20:45 
QuestionThe 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine Pin
Giri Dasari28-Sep-12 1:07
memberGiri Dasari28-Sep-12 1:07 
AnswerRe: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine Pin
Shemeer NS28-Sep-12 1:31
memberShemeer NS28-Sep-12 1:31 
GeneralRe: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine Pin
brother.gabriel10-Jan-14 11:04
memberbrother.gabriel10-Jan-14 11:04 
GeneralThoughts Pin
PIEBALDconsult9-Jul-12 3:57
memberPIEBALDconsult9-Jul-12 3:57 
GeneralRe: Thoughts Pin
Shemeer NS9-Jul-12 4:01
memberShemeer NS9-Jul-12 4:01 
GeneralMy vote of 3 Pin
Guillaume Leparmentier8-Jul-12 8:01
memberGuillaume Leparmentier8-Jul-12 8:01 
GeneralRe: My vote of 3 Pin
Shemeer NS8-Jul-12 10:15
memberShemeer NS8-Jul-12 10:15 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

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