Solved

Dependency Problem

Posted on 2004-08-12
4
934 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now