file not found during word class initialization

B

Bob Steele

I'm getting the following error during the class initialization of the
Microsoft Word 11.0 Object Library.

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in
sparser.exe

Additional information: The specified module could not be found.

----------------------------

The same error is generated in the 9.0 version of the same library. This is
code that was previously working (untill I upgraded office from 2000 to 2003
version)

The offending line of code is:

private Microsoft.Office.Interop.Word.ApplicationClass vk_word_app = new
Microsoft.Office.Interop.Word.ApplicationClass();

Does anyone have an idea what file its trying to load so that I can include
it in my path? Or any other ideas?
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?Qm9iIFN0ZWVsZQ==?=,

an idea, only: perhaps Word isn't registered correctly on your system. If you
go to START/Run, type winword.exe then execute, does Word start up or do you
get a message?

Also, I do know there are oddities with Word 2003 in connection with Word 2000.
Did you instruct setup to completely remove Word 2000, or did you install in
parallel? And did you explicitly instruct setup to install the Word 2003 PIAs?
I'm getting the following error during the class initialization of the
Microsoft Word 11.0 Object Library.

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in
sparser.exe

Additional information: The specified module could not be found.

----------------------------

The same error is generated in the 9.0 version of the same library. This is
code that was previously working (untill I upgraded office from 2000 to 2003
version)

The offending line of code is:

private Microsoft.Office.Interop.Word.ApplicationClass vk_word_app = new
Microsoft.Office.Interop.Word.ApplicationClass();

Does anyone have an idea what file its trying to load so that I can include
it in my path? Or any other ideas?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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 :)
 
B

Bob Steele

When I installed Word 2003 I chose to replace the Word 2000 installation. I
chose to remove the existing files (its been several weeks now and I dont
remember clearly). When I execute winword.exe it launches normally. As
mentioned, I installed Word 2003 as a replacement. I didn't remove word
(throuh the add/remove programs in the control panel) first, but later, in an
attempt to resolve the problem I re-installed the Word 2000. In both cases,
the results were the same. At this time both version exist on the computer.
I didn't explicitly instruct setup to install the Word 2003 PIA. I dont
recall seeing it as an option. What are the PIA's and how can I install them
(if needed)?
Bob Steele
 
C

Cindy M -WordMVP-

Hi Bob,

OK, I'm not an installation and setup expert, so I'm not certain of all the
ramifications, here. I just know that I have Office 2000 installed in parallel
with 2003 and experience various problem (not related to automation using .NET,
but I don't try that on this system). That said...

I'd try using Add/Remove programs to get rid of OFFICE (both versions)
completely. I'd say, remove them in the reverse order you've installed them, and
hope for the best. (You might check in the office.setup group, though, if the
experts there know of any additional steps to clean things out (the Registry,
especially)).

Then re-install Office 2003. If the Framework is already in-place, it should
install the PIAs automatically, but I always use the "customize" option and
choose to install the .NET stuff (among other things) explicitly.
When I installed Word 2003 I chose to replace the Word 2000 installation. I
chose to remove the existing files (its been several weeks now and I dont
remember clearly). When I execute winword.exe it launches normally. As
mentioned, I installed Word 2003 as a replacement. I didn't remove word
(throuh the add/remove programs in the control panel) first, but later, in an
attempt to resolve the problem I re-installed the Word 2000. In both cases,
the results were the same. At this time both version exist on the computer.
I didn't explicitly instruct setup to install the Word 2003 PIA. I dont
recall seeing it as an option. What are the PIA's and how can I install them
(if needed)?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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 :)
 

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