Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 12th, 2005, 7:26 AM   #1
sarav
Newbie
 
Join Date: Mar 2005
Posts: 5
Rep Power: 0 sarav is on a distinguished road
Warning: The dependency 'mydll' cannot be Warning:The dependency A cannot be copied..

I've got a web application and when I try to buid it, I receive this warning:

Warning: The dependency 'mydll',
Version=yyy, Culture=neutral' in project 'myproject' cannot be
copied to the run directory because it would overwrite the reference
'mydll', Version=xxx, Culture=neutral'.


'xxx' is the true version that I espect to be used (example: 1.0.1961.23390), and - overall - is the only one version that I can find on my computer. Infact, ther is only one mydll.dll file on my computer, that is the only one computer where code is developed. So version yyy DOES NOT EXIST! (Very strange, don't you think?)

'Mydll' is referenced from:
- class library 'B'
- a web application named 'myproject' that also reference B dll too.

Warning appear ONLY when i build my web application (not when I build B), because when I build the web application:
1) VisualStudio keep mydll.dll version xxx from the output directory of mydll project (example from c:\source\mydll\bin\) and copy it in the web application's output directory (C:\.Inetpub\wwwroot\myproject\bin)
2) VisualStudio see that myproject also need B.dll, so look at B.dll and see (I don't know how) that B.dll needs mydll too, but also see (I really would like to know HOW) that B.dll wants version yyy, (not the xxx, that is the right and only one!) and so try to copy mydll.dll version yyy (I don't know where it would found it) in web application's output directory (C:\.Inetpub\wwwroot\myproject\bin) and so here come our strange warning.

I found in internet a lot of developer with my some problem, but no answer for me. What a reference hell!
Can someone help me? Thanks a lot and forgive my terrible english.
sarav is offline   Reply With Quote
Old Apr 12th, 2005, 7:18 PM   #2
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Look at 'References' under your web app in the solution explorer. Remove the reference to 'mydll' and re-add it. That might fix it. Also, check your output directory of B.dll to see if there is a mydll.dll there. If there is, check its version.
Dameon is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:58 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC