Link to home
Start Free TrialLog in
Avatar of RGuillermo
RGuillermoFlag for United States of America

asked on

how to solve --- COULD NOT LOAD FILE OR ASSEMBLY "MICROSOFT.OFFICE.INTEROP.WORD" in visual basic 2013

Hello Experts,
I keep getting this message on computers of one particular LAN,
Everywhere else it Works just fine.
tried all I had, nothing Works.
What can I do.
Regards,
Avatar of Lokesh B R
Lokesh B R
Flag of India image

Hi,

You should have this DLL in your bin folder.

Microsoft.Office.Interop.Word.dll
Avatar of RGuillermo

ASKER

Hi Lokesh B R,
I just compiled again the App and the bin folder does not have that library
Where can I find it ?
Or how to make visual basic put it?
Thanl you,
Hi,

Ok, did you add reference to Microsoft.Office.Core in References?
Went to "Add references" cant find that exact name ´Microsoft.office.core' but do have the following options

in COM tab:
Microsoft.office 11.0 object library
Microsoft.office 15.0 Access database engine
Microsoft.office 15.0 object library
Microsoft.office euro converter...
Microsoft.office InfoPath
Microsoft.Office list 15.0

can you mention the steps to add it please ?
Hi,

Add this reference

Microsoft.office 14.0 object library

can you post the complete error details.
Hi,
I will use the only one I have; "Microsoft.office 15.0 object library

Attached you wil see a jpg of the error message.
error-message.jpg
it says a reference to Microsoft.Office.core is already in place,
but Icant see it anywhere....
My source code has this line,
Imports Word = Microsoft.Office.Interop.Word
Hi,

Copy the necessary dlls from GAC.

1. Start Menu -> Run and paste the following command

%windir%\Microsoft.NET\assembly

2. Copy the necessary dlls and paste it in your bin.

3. redeploy and check
Is Word/Office installed on that PC. It has to be installed on any PC you will be trying to run the application. The interops are just not enough.
Yes ms office is installed in the remote pc
and copied all posible dll from %windir%\Microsoft.NET\assembly but cant solve it
All ideas are welcome
appreciate the support until now ,,, made me review stuff I was not thinking about...
SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada 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
SOLUTION
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
ASKER CERTIFIED SOLUTION
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
Thank you!!