Solved

Dependency Problem

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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 article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

777 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