Interop.Word FileNotFoundError

J

Joe

Hello,

I am getting a file not found error when I attempt to create
an instance of the Word application. Could not load file or assembly
'Microsoft.Office.Interop.Word, Version=10.0.4504.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The
system cannot find the file specified.

I checked my computer and the dll is in the specified
location. So I am not sure why I am getting this error. I am
concerned about the phrase "or one of its dependencies". Perhaps I
need to reference another dll?


J
 
C

Cindy M.

Hi Joe,
I am getting a file not found error when I attempt to create
an instance of the Word application. Could not load file or assembly
'Microsoft.Office.Interop.Word, Version=10.0.4504.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The
system cannot find the file specified.

I checked my computer and the dll is in the specified
location. So I am not sure why I am getting this error. I am
concerned about the phrase "or one of its dependencies". Perhaps I
need to reference another dll?
Which version of Office are we dealing with?

Which programming language and what type of application are you
creating?

Are you certain the PIAs for Office and Word have been installed in the
GAC on this machine?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
V

Vyacheslav Akeyev

Joe said:
Hello,

I am getting a file not found error when I attempt to create
an instance of the Word application. Could not load file or assembly
'Microsoft.Office.Interop.Word, Version=10.0.4504.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The
system cannot find the file specified.

I checked my computer and the dll is in the specified
location. So I am not sure why I am getting this error. I am
concerned about the phrase "or one of its dependencies". Perhaps I
need to reference another dll?

Hi Joe,
when you are using MS Visual Studio to develop the application try correct
..config file (app.config or web.config). Probably you have a conflict beween
dll installed on your machine or server and dll referenced in .config file.
You have to use the same versions of these dlls.

Good luck!

Vyacheslav Akeyev (EPAM Systems, Saratov, Russia)
mailto:[email protected]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top