Solved

Dependency Problem

Posted on 2004-08-12
4
940 Views
Last Modified: 2012-05-05

Error: The dependency 'Interop.Office, Version=2.1.0.0, Culture=neutral' in project 'WindowsApplicationTESTOTHERDLLS' cannot be copied to the run directory because it would conflict with dependency 'Interop.Office, Version=2.1.0.0, Culture=neutral, PublicKeyToken=0b9a38cbd0c388e5'.

How can I solve this?
0
Comment
Question by:knowlton
  • 3
4 Comments
 
LVL 5

Accepted Solution

by:
millsoft earned 500 total points
ID: 11786089
manually delete the run (debug/release/etc) directory and try a complete build again.

This generally happens when the compiler get's confused about what's in the run directory vs. what it needs.
0
 
LVL 5

Author Comment

by:knowlton
ID: 11786153
If I have several modules that are co-dependent on each other.....what is the best way to deploy them under DEBUG / RELEASE.

My current setup is like this:

I have ONE solution which contains about 10 different projects.

I have a DEBUGBUILDS folder (for DEBUG mode) and I have RELEASEBUILDS folder (for RELEASE mode).

When I compile under one or the other.....I want the files to all be compiled and saved in either DEBUGBUILDS or RELEASEBUILDS (as the case may be).

I don't want RELEASE files with dependencies on DEBUG files, or vice-versa.

Should I stop using the IDE to compile everything and do it all in a batch file?
0
 
LVL 5

Author Comment

by:knowlton
ID: 11786179
I deleted everything out as you recommended...but I still get build errors:


N:\ClientDevelopment\NEO\BuyersFund\SOLUTION FOR ALL PROJECTS\ExchangeEventSinkClassLibrary\ExchEventSink.cs(90): 'ADODB.Stream' is defined in multiple places; using definition from 'N:\ClientDevelopment\NEO\BuyersFund\SOLUTION FOR ALL PROJECTS\DEBUGBUILDS\interop.adodb.dll'
N:\ClientDevelopment\NEO\BuyersFund\SOLUTION FOR ALL PROJECTS\ExchangeEventSinkClassLibrary\ExchEventSink.cs(100): 'ADODB.ConnectModeEnum' is defined in multiple places; using definition from 'N:\ClientDevelopment\NEO\BuyersFund\SOLUTION FOR ALL PROJECTS\DEBUGBUILDS\interop.adodb.dll'
N:\ClientDevelopment\NEO\BuyersFund\SOLUTION FOR ALL PROJECTS\ExchangeEventSinkClassLibrary\ExchEventSink.cs(100): 'ADODB.RecordCreateOptionsEnum' is defined in multiple places; using definition from 'N:\ClientDevelopment\NEO\BuyersFund\SOLUTION FOR ALL PROJECTS\DEBUGBUILDS\interop.adodb.dll'
N:\ClientDevelopment\NEO\BuyersFund\SOLUTION FOR ALL PROJECTS\ExchangeEventSinkClassLibrary\ExchEventSink.cs(100): 'ADODB.RecordOpenOptionsEnum' is defined in multiple places; using definition from 'N:\ClientDevelopment\NEO\BuyersFund\SOLUTION FOR ALL PROJECTS\DEBUGBUILDS\interop.adodb.dll'
N:\ClientDevelopment\NEO\BuyersFund\SOLUTION FOR ALL PROJECTS\FaxRequestWindowsService\ProjectInstaller.cs(19): The private field 'FaxRequestWindowsService.ProjectInstaller.components' is never used
N:\ClientDevelopment\NEO\BuyersFund\SOLUTION FOR ALL PROJECTS\FaxRequestWindowsService\ServiceProcessRequests.cs(384): The variable 'ee' is declared but never used
Unexpected error creating debug information file 'N:\ClientDevelopment\NEO\BuyersFund\SOLUTION FOR ALL PROJECTS\FormattingLib\obj\Debug\FormattingLib.PDB' -- 'N:\ClientDevelopment\NEO\BuyersFund\SOLUTION FOR ALL PROJECTS\FormattingLib\obj\Debug\FormattingLib.pdb: The process cannot access the file because it is being used by another process.
'
Unexpected error creating debug information file 'N:\ClientDevelopment\NEO\BuyersFund\SOLUTION FOR ALL PROJECTS\GatherMessages\obj\Debug\GatherMessages.PDB' -- 'N:\ClientDevelopment\NEO\BuyersFund\SOLUTION FOR ALL PROJECTS\GatherMessages\obj\Debug\GatherMessages.pdb: The process cannot access the file because it is being used by another process.
'
Unexpected error creating debug information file 'N:\ClientDevelopment\NEO\BuyersFund\SOLUTION FOR ALL PROJECTS\GeneralFunctions\obj\Debug\GeneralFunctions.PDB' -- 'N:\ClientDevelopment\NEO\BuyersFund\SOLUTION FOR ALL PROJECTS\GeneralFunctions\obj\Debug\GeneralFunctions.pdb: The process cannot access the file because it is being used by another process.
'
Unexpected error creating debug information file 'N:\ClientDevelopment\NEO\BuyersFund\SOLUTION FOR ALL PROJECTS\NEOMail\obj\Debug\NEOMail.PDB' -- 'N:\ClientDevelopment\NEO\BuyersFund\SOLUTION FOR ALL PROJECTS\NEOMail\obj\Debug\NEOMail.pdb: The process cannot access the file because it is being used by another process.
'
Warning: The dependency 'Interop.VBIDE, Version=5.3.0.0, Culture=neutral, PublicKeyToken=0b9a38cbd0c388e5' in project 'FaxRequestWindowsService' cannot be copied to the run directory because it would overwrite the reference 'Interop.VBIDE, Version=5.3.0.0, Culture=neutral'.
0
 
LVL 5

Author Comment

by:knowlton
ID: 11786258
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C# 2015 Downloading text file and preserving the line breaks 5 44
Service Controller 1 27
Hey!! 5 37
Input parameteres to DragOver 2 19
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question