Link to home
Start Free TrialLog in
Avatar of rufustmac
rufustmac

asked on

Office Interop assembly question

I am attempting to add a reference to Microsoft.Office.Interop.Outlook to my VS2005 project and it’s giving me fits.  I attempted to add a reference and then chose COM, selected Microsoft.Office.Core and it added it but did not add Microsoft.Office.Interop.Outlook.  I then installed the Office 2007 Primary Interop Assemblies redistributable and tried it again but that did no good either.  Do I need to do anything in addition to what I have already done in order to add it to my project?
Avatar of rufustmac
rufustmac

ASKER

I had been through some of those links myself and they weren't much help unfortunately.  One thing I did want to mention is that I am using Windows 7.  I looked back at an older project I did when I had XP and I noticed that I successfully imported the Microsoft.Office.Interop.Outlook assembly into my project.  So, I'm not sure if this a Windows 7 thing or I'm doing something wrong the 2nd time around.
The redristro is for XP SP2 - I am not sure if it will run on Windows 7.

There's a case here on EE, this guy got it to work using this method.

https://www.experts-exchange.com/questions/24873386/PIA-wont-install-for-office-2007-outlook-business-contact-manager.html
You want to give that a shot ?
o2007pia.msi is the package I downloaded and installed without error but I still don't see the .dll's that I am looking for.
I just found that if I look in the GAC, I do see the Microsoft.Office.Interop.Outlook and all of it's associated friends but I am unable to reference them in my project.
ASKER CERTIFIED SOLUTION
Avatar of sunnyc7
sunnyc7
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Reinstalling Office did the trick