We help IT Professionals succeed at work.

C#.NET 1.1 error message: The dependency (dependency.dll, version  in myproject cannot be copied to the run directory because it would conflict with dependency  (...dll, version

alexmac05 asked
Last Modified: 2012-02-22
error message: The dependency (dependency.dll, version  in myproject cannot be copied to the run directory because it would conflict with depdency  (dependency.dll, version

What can cause this error message?

1. There is no mention of dependency.dll version in any of the text of the solution
2. dependency.dll version isn't referenced in any project for the solution
2. dependency.dll version isn't on the machine running this build
3. version of dependency.dll is referenced in many projects in the solution and that is the version in the run directory

I can get rid of the error message by adding a direct reference to dependency.dll version to myproject in the solution.  
I'm basically just curious as to why this is happening.

I even checked the references references to the projects giving the error and they don't reference dependency.dll version either.

I do not want to add strong names in Global Cache Assembly because I don't need both versions.

thoughts as to why this is happening?

any thoughts of how i can track down who is trying to reference dependency.dll

Watch Question


Can anyone recommend any tools to assist in troubleshooting these? Dependency Walker?
Navneet.Net Full Stack Developer


Is it a compile error?
If you are getting this error in Error List Window , Can you post the image of this Error



These are build errors. I can't send a picture because of proprietary info, but yes, its showing up as Build Error tasks... in a task list in visual studio


do you think any of these tools would help? Have you used any of these before for a dependency walker type of functionality?


specifically, looks like Assembly Visualizer, Graph, and Dependency Structure Matrix would all be related to the issue


here is a picture with the proprietary info erased.
Navneet.Net Full Stack Developer

Where is the pic??


it won't attach for some reason. its a PNG image that is 21kb so it should....

i don't get an error message


i'll try from home tonight. it might be that my work is blocking it.
This one is on us!
(Get your first solution completely free - no credit card required)


just a work around, no answer was found

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.