473,836 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Office dependencies

I've been given an app to deal with that has a dependency on Excel XP (I
think it was also known as Excel 2002). I have Office 2003 installed on
my box. The application does not compile (complains of a missing
assembly). Basically it complains about the following:

Error: The dependency 'Interop.Micros oft.Office.Core , Version=2.3.0.0 ,
Culture=neutral ' in project 'Lan.Mers.Proce ssor' cannot be copied to the
run directory because it would conflict with dependency
'Interop.Micros oft.Office.Core , Version=2.2.0.0 , Culture=neutral '.

What can I do to make it compile without having to uninstall office 2003
and installing office xp? Removing the dependency on excel is not on
the table (believe me, i asked).

Regards
Sep 1 '06 #1
1 3916
Try the following:

1. Open solution explorer and expand the References tab. You may see an item
appearing with a yellow exclamation mark. This is an item needing attention.
Remove the reference to Excel.
2. Close the project and re-open it.
3. In solution explorer right click on References and select Add Reference.
4. In the Add Reference form select COM and scroll down to Microsoft Excel
5.0 Object Library. Select it and click OK.
5. Try building your project. If it fails then you may need to look at the
using statements or code statements using the Interop as I have seen
differences between name spaces used (even on the same version of Office).

You should be able if the code is constructed correctly to allow your
application to work with both versions of Excel. I've a VS 2005 project
which quite happily automates versions of Word from 2000 through to 2003.

HTH

- Andy

"Frank Rizzo" <no**@none.comw rote in message
news:eL******** ******@TK2MSFTN GP06.phx.gbl...
I've been given an app to deal with that has a dependency on Excel XP (I
think it was also known as Excel 2002). I have Office 2003 installed on
my box. The application does not compile (complains of a missing
assembly). Basically it complains about the following:

Error: The dependency 'Interop.Micros oft.Office.Core , Version=2.3.0.0 ,
Culture=neutral ' in project 'Lan.Mers.Proce ssor' cannot be copied to the
run directory because it would conflict with dependency
'Interop.Micros oft.Office.Core , Version=2.2.0.0 , Culture=neutral '.

What can I do to make it compile without having to uninstall office 2003
and installing office xp? Removing the dependency on excel is not on the
table (believe me, i asked).

Regards

Sep 1 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2039
by: Zamolxe | last post by:
I have installed the Visual Studio 2003 FULL With MSDN (ORIGINAL NOT CRACKED :), Office 2003PRO FULL. After installing Office i have insatlled the MSDE form OFFICE CD, IIS is installed. Then: Microsoft Office Access 2003 Developer Extensions (English) Microsoft Visual Studio® Tools for the Microsoft Office System 2003 (English) Then: SQL SERVER 2000 Then: VS2005 Beta (Full install). Now the problem is in 2003 when I try to create a...
2
13881
by: JT Lovell | last post by:
I have a solution with 5 projects and I need them to build in a particular order. I understand that setting the project dependencies will allow this, but when I go to the Project Dependencies dialog, the "Depends on" checkboxes are grayed out. Is there something else required in order to enable these? Thanks, -- JT Lovell
1
15965
by: R Reyes | last post by:
ISSUE (reposted) =========================== Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? For many people, they say they add the reference and it works, however when I add the reference the application can't find it. Not sure why it says the system cannot find the file when it exists in that location? Please help, thanks in advance... GOAL ===========================
5
17635
by: SJ | last post by:
I have a VS2005 solution that has a class library and a website. Website has a project reference to the class library in the solution. Whenever I try to build the solution the following two lines get added in web.config as part of the compilation process. These lines get added right after class library is compiled and just before website starts compiling. Because of this I am unable to publish the website on machines that dont have...
7
13529
by: barias | last post by:
Although circular dependencies are something developers should normally avoid, unfortunately they are very easy to create accidentally between classes in a VS project (i.e. circular compile-time dependencies). But then I started wondering how "easy" it would be to similarly make a NON-RUNTIME circular dependency between (implicitly linked) DLLs. Indeed authors like John Lakos, who focus on compile/link-time dependencies (not run-time),...
9
48023
by: sajithkahawatta | last post by:
my web page C#.net is work properly in my iis .but when i publish in another server it give errers.i used vs2005 and ms word 2003. but in the server there is no vs2005 or word installed. it has only .net frame work installed.folowing the error, Parser Error Message: Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot...
8
2383
by: Scott Sauyet | last post by:
I found myself needing to find my way recursively through a document in XSLT, finding the dependencies one element had on others, and including only those in an initial set, their dependencies, the dependencies of those dependencies and so on. I managed to do it, but I'm not really happy with the method, and I'm wondering if anyone can suggest something better. My technique involves manipulating a string containing the names, calling a...
0
2347
by: pankajprakash | last post by:
as i run the my web application it occurs the following error "Could not load file or assembly 'Microsoft.Office.Interop.MSProject, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified. D:\Projects\TRMS\TRMS_SQL\TRMS32\Web.config" would you tell me how i can configure the project.
3
11655
OuTCasT
by: OuTCasT | last post by:
Hi I have created an asp.net project that exports items from datagridview to and outlook calendar This is the code that i have used.. Dim body As String Dim ends As String Dim location As String Dim start As String Dim subject As String
0
9810
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10819
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10567
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9349
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7771
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6972
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4437
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3100
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.