Referencing component 'Microsoft.Office.Interop.Word'

I have a new machine with Office 2013 and Visual Studio 2010. When I try to compile my project I get:
Warning      13      The referenced component 'Microsoft.Office.Interop.Word' could not be found.       

I looked on my old machine and opened the reference to see where the .dll was pointing to. I tried copying it over to my new machine in the same path but then get a warning about the .NET version. And in reviewing the files, it says the version is 15.0.0. where on the old machine it's 14.0.0.
How do i get the correct DLL on my new machine? Do I have to reinstall VS 2010?

I tried installing the interop assemblies for 2010 but still couldn't find a way to add the .DLL
esb91077Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Karrtik IyerSoftware ArchitectCommented:
Just select add reference by right click on your project and search for the office interop DLL and select it, it should work.
I don't think you need to reinstall visual studio.
0
Karrtik IyerSoftware ArchitectCommented:
Please see attached screenshot, If it is office 2013, it is v 15.0 which you need to select.
AddReferenceInterOpDLL.png
0
esb91077Author Commented:
The project was built back when Office 2010 was installed. So I think I need v 14.0. But I can't find where the interop dlls are. I ran the installer and it never asked for a path or anything.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Najam UddinCommented:
Install Microsoft Office and make sure that the .NET Programmability Support feature is selected for the applications you want to extend (this feature is included in the default installation).
0
Karrtik IyerSoftware ArchitectCommented:
In my machine, the interop DLL's are located at the below location:
DriverLetter (c or d or e where visual studio is installed) :\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office12\
0
esb91077Author Commented:
And on my machine that folder doesn't exist. Is it possible I just need to add a feature to my VS 2010 install?
0
Karrtik IyerSoftware ArchitectCommented:
Yes, it should be possible, just go to custom option and select visual studio feature which might say office tools or office tool development. (I don't exactly remember the feature name)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Karrtik IyerSoftware ArchitectCommented:
I think these assemblies can be explicitly installed as well. As per the links mentioned below,
Visual Studio installs these copies of PIAs to the following locations on the development computer:

    %ProgramFiles%\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office12

    (or %ProgramFiles(x86)%\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office12 on 64-bit operating systems)

    %ProgramFiles%\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office14

    (or %ProgramFiles(x86)%\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office14 on 64-bit operating systems)
1> https://msdn.microsoft.com/en-us/library/vstudio/15s06t57%28v=vs.100%29.aspx
2> https://msdn.microsoft.com/en-us/library/vstudio/kh3965hw%28v=vs.100%29.aspx
3> https://www.microsoft.com/en-us/download/details.aspx?id=3508
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.