473,387 Members | 1,897 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Dependency Error: The dependency <dll> in project <project> cannot be coppied to the run directory becuase it would conflict with dependency <dll>

Error: The dependency '<my dll>' in project '<my project>' cannot be copied
to the run directory because it would conflict with dependency '<my dll>'.
I am getting a dependency error building my application that was using some
other namespaces that I had built and incorrectly referenced to the dll
instead of the project, but I ended up removing the reference entirely but
my project keeps getting the error.

How do I tell my project to stop looking for a dll that isn't even
referenced anymore and stop giving me this <expletive removed> error?

Jay A. Moritz
Nov 21 '05 #1
5 3999
Two things you could try:

1. Check that all the references paths in your project properties are
correct. Old reference paths can cause VS to pick up the wrong dlls

2. If that seems to be alright try deleting all the dlls in your bin
directory.

"Jay A. Moritz" wrote:
Error: The dependency '<my dll>' in project '<my project>' cannot be copied
to the run directory because it would conflict with dependency '<my dll>'.
I am getting a dependency error building my application that was using some
other namespaces that I had built and incorrectly referenced to the dll
instead of the project, but I ended up removing the reference entirely but
my project keeps getting the error.

How do I tell my project to stop looking for a dll that isn't even
referenced anymore and stop giving me this <expletive removed> error?

Jay A. Moritz

Nov 21 '05 #2
Jay,

Mostly this error is gone when you do a restart of your computer. It happens
because you have locked that dll. You can search as well what locks it of
course.

Cor
Nov 21 '05 #3
I have already found the articles about deleting the bin and obj directories
and rebooting the computer, I have also tried creating a new project and
importing my class files and windows forms. The project no longer has any
references to the dll that keeps blowing up so I have no interest in mapping
references to an unused dll in my bin directory just so I can build a
project. How does a programmer work around this <expletive deleted> BUG!! I
can't build my project because it errors on conflicting dll's that are no
longer referenced or required. Where is VS storing these references so I can
go changed it? Anybody have any new ideas?

Jay A. Moritz
"Jay A. Moritz" <jm*****@predictableoutcomes.com> wrote in message
news:ua**************@TK2MSFTNGP15.phx.gbl...
Error: The dependency '<my dll>' in project '<my project>' cannot be
copied to the run directory because it would conflict with dependency '<my
dll>'.
I am getting a dependency error building my application that was using
some other namespaces that I had built and incorrectly referenced to the
dll instead of the project, but I ended up removing the reference entirely
but my project keeps getting the error.

How do I tell my project to stop looking for a dll that isn't even
referenced anymore and stop giving me this <expletive removed> error?

Jay A. Moritz

Nov 21 '05 #4
I have also created a new project (gave it the same name as the old
project), new class files and copied and pasted the code from the old
classes into the new classes and the task list is already showing that I
have conflicting dlls.

Jay A. Moritz
"Jay A. Moritz" <jm*****@predictableoutcomes.com> wrote in message
news:ui*************@TK2MSFTNGP14.phx.gbl...
I have already found the articles about deleting the bin and obj
directories and rebooting the computer, I have also tried creating a new
project and importing my class files and windows forms. The project no
longer has any references to the dll that keeps blowing up so I have no
interest in mapping references to an unused dll in my bin directory just so
I can build a project. How does a programmer work around this <expletive
deleted> BUG!! I can't build my project because it errors on conflicting
dll's that are no longer referenced or required. Where is VS storing these
references so I can go changed it? Anybody have any new ideas?

Jay A. Moritz
"Jay A. Moritz" <jm*****@predictableoutcomes.com> wrote in message
news:ua**************@TK2MSFTNGP15.phx.gbl...
Error: The dependency '<my dll>' in project '<my project>' cannot be
copied to the run directory because it would conflict with dependency
'<my dll>'.
I am getting a dependency error building my application that was using
some other namespaces that I had built and incorrectly referenced to the
dll instead of the project, but I ended up removing the reference
entirely but my project keeps getting the error.

How do I tell my project to stop looking for a dll that isn't even
referenced anymore and stop giving me this <expletive removed> error?

Jay A. Moritz


Nov 21 '05 #5
Found the culprit. Partner had referenced the bad dll in one of the classes
he had built that I was referencing. Would have been a WHOLE lot easier to
track down the problem if the IDE had said what object/class had the
conflicting dll reference instead of just stating that there was a conflict.

Jay A. Moritz
"Jay A. Moritz" <jm*****@predictableoutcomes.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
I have also created a new project (gave it the same name as the old
project), new class files and copied and pasted the code from the old
classes into the new classes and the task list is already showing that I
have conflicting dlls.

Jay A. Moritz
"Jay A. Moritz" <jm*****@predictableoutcomes.com> wrote in message
news:ui*************@TK2MSFTNGP14.phx.gbl...
I have already found the articles about deleting the bin and obj
directories and rebooting the computer, I have also tried creating a new
project and importing my class files and windows forms. The project no
longer has any references to the dll that keeps blowing up so I have no
interest in mapping references to an unused dll in my bin directory just
so I can build a project. How does a programmer work around this
<expletive deleted> BUG!! I can't build my project because it errors on
conflicting dll's that are no longer referenced or required. Where is VS
storing these references so I can go changed it? Anybody have any new
ideas?

Jay A. Moritz
"Jay A. Moritz" <jm*****@predictableoutcomes.com> wrote in message
news:ua**************@TK2MSFTNGP15.phx.gbl...
Error: The dependency '<my dll>' in project '<my project>' cannot be
copied to the run directory because it would conflict with dependency
'<my dll>'.
I am getting a dependency error building my application that was using
some other namespaces that I had built and incorrectly referenced to the
dll instead of the project, but I ended up removing the reference
entirely but my project keeps getting the error.

How do I tell my project to stop looking for a dll that isn't even
referenced anymore and stop giving me this <expletive removed> error?

Jay A. Moritz



Nov 21 '05 #6

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

Similar topics

0
by: trdonavan | last post by:
Several things may have happened since I last successfully debugged this project. Something has caused it to fail to debug giving the message: Parser Error Message: Could not load type...
3
by: Wiktor Zychla | last post by:
I have a problem I cannot solve. My application hosts IE activex control. I follow the standard procedure: I just aximp shdocvw.dll. Note that this gives you two files: axshdocvw.dll and...
1
by: Chua Wen Ching | last post by:
Okay i manage to convert the C# class library into dll, and enable com interop. I basically can call c# methods from vb6 with this as long i add references to the .net project (e.g TestProject) ...
3
by: Sam | last post by:
I have an extended class in a dll and have put summaries for each method like this /// <summary> /// Removes all occurences of a given object. /// </summary> The problem is that when I see my...
2
by: adios | last post by:
Hi, i'm currently working on web services using C#. i've used external DLL in my project. when i test the web service out, the page display an error msg - unable to load DLL (<filename>.dll) after...
1
by: RF | last post by:
Hi All, I have a project in vc with an output in *.lib. When I compile in lib format, everything works fine, when I want to convert to dll, but it gives me an error on "LNK2019" and "LNK2001". ...
11
by: Wolfgang Kaml | last post by:
I am not sure if this is more of an expert question, but I am sure that they are out there. I'd like to setup a general application or bin directory on my Win2003.Net Server that will hold some...
7
by: Martin Strojek | last post by:
Hi, I have the following problem with developing some web site. I use Visual Studio 2003 to build a website. I tried Windows 2003 Server and switched now back to Windows XP with PWS but the...
3
by: noreponse1 | last post by:
Hello, I have a solution that contains two projects. I have 2 dlls that these projects use. Here's how it's set up: Solution -ProjectA --References ---DLLA -ProjectB
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.