views:

288

answers:

3

We have several external dlls being referenced in our Web Application Project. We have a deployment project for installing on the hosting servers. When we were using .net 3.5 and vs2008 the dll were being copied to the bin folder. Since we have upgraded to .net 4 vs2010 this no longer happens and we are getting servers errors since the references cannot be found.

CopyLocal is set to true, and i cannot find anything inside the web.config which suggest this is being set else where.

A: 

I am not sure how it was set up in the VS2008 but I am almost positive that you might have been using the Post-Build event command line. In there you can tell to copy the dlls you need for deployement. An example is given below:

mkdir $(SolutionDir)\Deployment
copy "$(SolutionDir)Your_Library_Name\Your_Dll_ForDeployement.dll" 
$(SolutionDir)\Deployment\
VoodooChild
I check this and it wasn't the case, Thank you anyway tho.
g.foley
+1  A: 

Something weird had happened to my deployment project. When i saw it had no detected dependencies, I remove the primary output and re-added it. The dependencies are now showing up and being placed in the bin folder when installed.

g.foley
Great. just one question: How did you find out that it had no detected dependencies? which option is this in? please elaborate. thanks
VoodooChild
In my deployment project there is a detected dependencies folder. The only thing it was detecting in there was the .net framework. You can right click on this folder and click "Refresh dependencies", but even this wasn't working for me. When i re-added the primary output the dependencies were detected. It was very odd, and was caused sometime during the conversion between vs2008 and vs2010. I'd say its a bug but for the fact that all my other deployment projects converted perfectly. At the end of the day i have no idea what has happened.
g.foley
A: 

I am getting exactly the same issue. We have a VS2008 project which references the EnterpriseLibrary. When we run our integrated build using TFS and our Web Deployment Project, all the dll's are copied over. When we upgraded to VS2010, TFS2010 and WDP 2010, some of the DLL's are missing. Strangely, this only occurs to some dll's and not others. For eample, we get the Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll copied in both cases, but not the Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll

As a workaround I copied the files accross using a "BeforeBuild" step.

It now seems to build OK.

Patrick Magee

related questions