How to Fix ACEODBC.DLL Cannot Be Added as a .NET Reference Error
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.

- 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.
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.
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.
Navigate to the official Microsoft download center and search for the Microsoft Access Database Engine Redistributable installer.
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.
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.

Resolve Office Click-to-Run Driver Visibility Issues
If you have a Click-to-Run installation of Microsoft Office, the ODBC drivers might be isolated in a virtualized environment, preventing your .NET application from seeing them.
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. Download WPS Office: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install the Software: Run the installer and follow the simple on-screen instructions to set up the software.
- 3. Enjoy High Compatibility: Open, edit, and save your existing Office documents directly without losing any formatting or data.

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.




