Solved

Dependency Problem

Posted on 2004-08-12
4
942 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:Tom Knowlton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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:Tom 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:Tom 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:Tom Knowlton
ID: 11786258
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

752 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