Could not load file or assembly ‘Microsoft.Office.Interop.Word…’

Guys,

Recenly, I came accross with some issue related to using MS Office in VB.Net, where I was able to run the application on development machine but not on users/production machines.

The first thing came to my mind was Whether the Office is Installated on machine? Yes, it was installed. What should be next? If it is working on the development machine, why its not on others machine? The only difference was of installation options missed on users machines. It was minimal installation type. The reason could be licenses.

Anyways, thats not our objective.

So, the resolution is  missing Office PIAs (Primary Interop Assemblies). They are installed with Office if you check the .Net programability components.

Here are the links available for download from microsoft site:

XP: http://www.microsoft.com/downloads/details.aspx?FamilyId=C41BD61E-3060-4F71-A6B4-01FEBA508E52&displaylang=en

2003: http://www.microsoft.com/downloads/details.aspx?familyid=3c9a983a-ac14-4125-8ba0-d36d67e0f4ad&displaylang=en

 

Include in the setup file, next time you want to deploy your application or manually run the prerequisite on the existing machines.

Happy Interoperability!

Advertisements

About Jaggi
love technology, always updated on the latest and current happenings, seminars, tech.Ed, virtual days! Be Yourself!

3 Responses to Could not load file or assembly ‘Microsoft.Office.Interop.Word…’

  1. Yi says:

    This article does help me a lot.
    Thank you very much.
     
     
    Yuan Yi
    Software Development Center
    Industry and Commercial Bank of China

  2. Michael says:

    You are a lifesaver – thank you very much

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: