Fix: 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine
Codemia Knowledge Hub ·
This error means the application cannot find an ACE OLE DB provider it can load. Either the Microsoft Access Database Engine is not installed, or it is installed with a different architecture (32-bit vs. 64-bit) than the application. Install the redistributable and make the bitness match, for example by changing the project's platform target.
Microsoft.ACE.OLEDB.12.0 is an OLE DB (Object Linking and Embedding, Database) provider that reads and writes Microsoft Office files such as Access databases (.mdb, .accdb) and Excel spreadsheets (.xls, .xlsx) without opening the Office applications. The error typically appears in .NET applications that connect to Access or Excel files through it.
Causes
- Provider not installed: the Microsoft Access Database Engine (ACE), which supplies the provider, is not on the system.
- Architecture mismatch: the application's architecture (32-bit or 64-bit) differs from the installed ACE OLE DB provider.
- Permission issues: the current user lacks the permissions needed to use the provider.
- Corrupted installation: the ACE OLE DB provider installation is damaged.
Fixes
Install the Access Database Engine
Install the Microsoft Access Database Engine Redistributable, which includes the ACE.OLEDB.12.0 provider, choosing the version that fits your system's architecture:
- The 2007 and 2010 redistributables, which originally shipped the provider, have been removed from Microsoft's download site.
- Look for the current "Microsoft Access Database Engine Redistributable" on the Microsoft Download Center or Microsoft Learn, and pick the 32-bit or 64-bit installer to match your application.
After installing, confirm that the provider name your connection string uses (Microsoft.ACE.OLEDB.12.0 or a newer one such as Microsoft.ACE.OLEDB.16.0) is registered, and update the connection string if only the newer name is available.
Match the application's architecture
- For a 32-bit application, install the 32-bit ACE OLE DB provider.
- For a 64-bit application, install the 64-bit provider.
Change the platform target in Visual Studio
- Open the project's properties.
- Go to the "Build" tab.
- Set "Platform target" to x86 or x64 to match the Access Database Engine you installed.
Repair or reinstall
If the error persists, repair the Microsoft Access Database Engine from the Control Panel or reinstall the package.
Where the error shows up
A .NET application reading Excel
Resolution: install the ACE provider that matches the app's architecture and redeploy.
SSIS packages
If an SSIS package fails with this error, make sure SQL Server Data Tools (SSDT) matches the ACE OLE DB provider version.
Causes and fixes at a glance
| Cause | Solution |
| Provider Not Installed | Install Microsoft Access Database Engine |
| Architecture Mismatch | Match application and provider architectures |
| Permission Issues | Ensure correct permissions to run the application |
| Corrupted Installation | Reinstall or repair the ACE OLE DB provider |
Related reading
- Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine
- Minikube expose MySQL running on localhost as service
- Minimal KMS permissions to copy a database snapshot
- MIN/MAX vs ORDER BY and LIMIT
- Midpoint Formula Overflow Error
- minikube and how to debug api server error
- Modify foreign key to create a distributed database
- Mongo C driver - Building filter dynamically with nesting
System design interview problems on this topic
- Design a Distributed OLTP Database: solution and walkthrough
- Design a Wide Column Database: solution and walkthrough
- Design a Key Value Store: solution and walkthrough
- Design a Web Cache: solution and walkthrough

System Design Fundamentals
Build a strong foundation in designing scalable, reliable distributed systems.
View the courseSystem Design practice on Codemia
Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.