Office Interop assembly question

rufustmac
rufustmac used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
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.
Top Expert 2010

Commented:
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.

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Windows_7/Q_24873386.html
You want to give that a shot ?

Author

Commented:
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.

Author

Commented:
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.
Top Expert 2010
Commented:
Question - did you install customized OR complete version of MS Office.
What version of MS Office are you running ?

Is it possible that Office.Interop assemblies are being reference through .Net framework ?

I am just thinking out loud.

Reference
http://msdn.microsoft.com/en-us/library/kh3965hw(VS.80).aspx

Author

Commented:
Reinstalling Office did the trick

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial