Interop.Microsoft.Office.Core

  • Thread starter Thread starter AllenF
  • Start date Start date
A

AllenF

I have a library (named DSG) created in C# which other programs use to build
Excel spreadsheeets. This library uses the office PIAs
"Microsoft.Office.Interop.Excel.dll" and also references the Microsoft
Office v10 library using ActiveX. Recently I loaded Microsoft's Project
2003 (v11) to my programming computer for tracking purposes, which loaded
the Microsoft Office v11 library.

Now, when I run my programs (in VS C#) I get two errors:
1) Warning: The dependency 'Interop.Microsoft.Office.Core, Version=2.2.0.0,
Culture=neutral' in project 'DSG' cannot be copied to the run directory
because it would overwrite the reference 'Interop.Microsoft.Office.Core,
Version=2.3.0.0, Culture=neutral'.
2) The dependency 'Interop.Microsoft.Office.Core' could not be found. (this
occurs in the main program which references the library DSG).

I believe this is due to the version discrepancies, but I cannot seem to
rectify this. If I drop the Microsoft Office v10 library and reference the
v11 library instead, the results are the same. Even if I drop the reference
to the Microsoft Office altogether, the results are the same. It must be
something simple that I am overlooking.

Any ideas??


Allen
The DataSol Group, Inc.
 
Back
Top