Saturday, May 05, 2007

Error Message: Could not copy temporary files to the output directory.
Or
Cannot copy sample.dll to D:\Prabakar\Sharpurdotnet\...


We may receive this error message many time while your build your application or the specific project. I too had this problem many time and the reason for the error and the solution is here.

Reason:

Check the property of the output weather the COPY LOCAL property is false
May be all of your output path may refer a single folder.
Solution:


Change the output folder
And set the COPY LOCAL Property to true
Delete the bin and obj folder and rebuild the project

No comments: