Word Interop compile time error

Posted by user114385 on Stack Overflow See other posts from Stack Overflow or by user114385
Published on 2010-05-24T22:27:24Z Indexed on 2010/05/24 22:31 UTC
Read the original article Hit count: 340

Filed under:
|
|
|
|

I am getting the following error when referencing the assembly Microsoft.Office.Interop.Word in my asp.net application.

The type 'Microsoft.Office.Interop.Word.ApplicationClass' exists in both 'C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Word\11.0.0.0_71e9bce111e9429c\Microsoft.Office.Interop.Word.dll' and 'C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Word\12.0.0.0_71e9bce111e9429c\Microsoft.Office.Interop.Word.dll'

Previously, I was getting the error but the 12.0.0.0 was in the PIA directory under Visual Studio, but the error message was the same, except pointing to a different path. Since then, I copied the dll to the GAC, but with the same error.

I thought that .Net was supposed to take care of this. Can anyone give me some help? Thanks

BTW, I am doing this using Visual Studio .Net 2008

© Stack Overflow or respective owner

Related posts about interop

Related posts about word