logo
search
Others

How to Fix ACEODBC.DLL Cannot Be Added as a .NET Reference Error

Phi Hung VoPhi Hung Vo Oct 10, 2026 871 views

Question details

The user is attempting to add the ACEODBC.DLL file as a reference in a .NET project but encounters errors because it is a native driver, not a managed assembly.

Why ACEODBC.DLL Cannot Be Added as a .NET Reference
Product
Visual Studio / Access Database Engine
Device & OS
not provided
Scenario
Connecting a .NET application to a Microsoft Access database by attempting to reference the ACEODBC.DLL driver file directly in the development environment.
Observed behavior
Adding the DLL as a project reference fails, or the application throws an IM002 ODBC driver manager error indicating the data source or driver cannot be found.
Before you start

Verify whether your .NET application's target platform is set to 32-bit (x86) or 64-bit (x64), as the ODBC driver architecture you install must perfectly match your application's architecture.

Solution 1Recommended

Install the Microsoft Access Database Engine Redistributable

Since ACEODBC.DLL is a native ODBC driver library rather than a .NET assembly, you must install the official redistributable package to register the driver correctly.

Copying the DLL file directly into your Visual Studio project folder will not install or register the ODBC driver with Windows. The driver needs to be installed globally so the ODBC Driver Manager can locate it.

1
Download the Redistributable

Navigate to the official Microsoft download center and search for the Microsoft Access Database Engine Redistributable installer.

2
Select the Matching Architecture

Download and run either the 32-bit or 64-bit version of the installer, ensuring it exactly matches the target architecture of your .NET application process.

3
Update the Connection String

Modify your application code to use a standard connection string (e.g., specifying 'Driver={Microsoft Access Driver (*.mdb, *.accdb)}') instead of referencing the DLL directly.

Install the Microsoft Access Database Engine Redistributable
Architecture Match: Ensuring the application bitness and the driver bitness match is the most effective way to prevent the IM002 driver manager error.
Free Microsoft Office alternative

Looking for a Free, Lightweight Office Alternative?

While troubleshooting database drivers for your development projects, consider switching to WPS Office for your daily document needs. It offers a lightweight, completely free alternative with seamless compatibility for Microsoft Word, Excel, and PowerPoint files.

  1. 1. Download WPS Office: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Install the Software: Run the installer and follow the simple on-screen instructions to set up the software.
  3. 3. Enjoy High Compatibility: Open, edit, and save your existing Office documents directly without losing any formatting or data.
Completely free and lightweight Office suiteStrict format compatibility with Microsoft Excel (.xlsx) and Access data exportsFamiliar user interface with zero learning curve for seamless migration
microsoft office alternative - wps office

Frequently Asked Questions

What does the IM002 ODBC driver error mean?

The IM002 error indicates that the Data Source Name (DSN) was not found and no default driver was specified. This usually happens when the ODBC driver is not properly installed, or there is an architecture mismatch (e.g., a 32-bit app trying to use a 64-bit driver).

Can I simply copy ACEODBC.DLL to my .NET project folder?

No. ACEODBC.DLL is a native C/C++ ODBC driver library, not a managed .NET assembly. Copying it does not register it with the Windows ODBC Driver Manager. You must run the official Microsoft Access Database Engine installer.

How do I check if my .NET application is 32-bit or 64-bit?

In Visual Studio, right-click your project in the Solution Explorer, select Properties, and navigate to the Build tab. Check the 'Platform target' dropdown, which will specify x86 (32-bit), x64 (64-bit), or Any CPU.