Could not load file or assembly 'Microsoft.Office.Interop.Word'

B

bennblum

Hi,

I have a machine running XP Proffesional that had Office 2007
installed. I removed
Office 2007 to install Office 2003 (our VSTO development is for Office
2003).
I am using C# in a Microsoft Visual Studio 2005 IDE.

The application attempts to create a new word document through a web
browser.
When I try to create a word application in the following code :

Microsoft.Office.Interop.Word.Application myWordApp = new
Microsoft.Office.Interop.Word.Application();

I receive this error :

"Could not load file or assembly 'Microsoft.Office.Interop.Word,
Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or
one of its dependencies. The system cannot find the file specified."

There are no assemblies in the GAC with this version. The highest
version is 11.0 which is Office 2003.
I have tried to remove all related registries entries with no luck.
Does anyone have a work around for
this ?

Thanks in advance
Benn
 

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