VS 2012.3 Referencing MS Access COM DLL, could not resolve COM reference error

calendar_today Asked Oct 31, 2013
thumb_up 7 upvotes
history Updated April 16, 2026

Question posted 2013 · +4 upvotes

I created a new Console project in VS2012.3 (32bit exe) and added a COM Type Library reference to Microsoft Access (I tried both 2003 and 2007). The “Microsoft Access” reference shows up in the Add Reference dialog no problem. However, upon closing that dialog VS displays a yellow triangle overlay on the two newly added references, and I get the following build error:

Could not resolve COM reference “4affc9a0-5f99-101b-af4e-00aa003f0f07” version 9.0. Object reference not set to an instance of an object.

My colleagues are able to do this with no problem on their computer. So I’m trying to figure out what could be the problem with my machine. I’m running Windows 8.1, whereas others are running a mix of Windows 8.0 and 7. Any ideas?

Update – Some screen shots: MS Access in OLEView

Add Reference Dialog

VS COM References not found

ADODB Interop Assembly

ADODB GAC

MsADO25.tlb

Missing PrimaryInteropAssemblyName value in Registry

Accepted answer +7 upvotes

Problem Solved: I found the solution here: http://support.microsoft.com/kb/823996.
All I had to do was open the “Developer Command Prompt for VS2012”, navigate down to the GAC’s ADODB folder, then run regasm.exe ADODB.dll. That fixed the entire problem.

At VS 2012 Command Prompt run regasm

Problem solved: VS COM References now found.

Top ms-access Q&A (6)

+7 upvotes ranks this answer #37 out of 55 ms-access solutions on this site .