error message

  • Thread starter Thread starter Liliane CHIMG
  • Start date Start date
L

Liliane CHIMG

Hi,
why trying to execute my projet, i have these messages errors:
"The file 'filename' cannot be copied to the run directory."
"Could not copy temporary files to the output directory"
Please can you help me?

Liliane TAGU
 
Hi Liliane,

This typically means that the executable is already running and the files
are therefore locked, or some executable using the files in your output
directory is running. If you are sure the program using those file is no
longer running, perhaps you have a hanging process refusing to release the
locks on the files. If you can't kill the process using Task Manager you
may need to reboot.
 
Morten's reply is the common cause that I found - particualry when
debugging ASP.NET. Also you might have any number of output files (eg
PDBs & DLLs) set to read-only if you're using any Source Code Control
 
If you are using Visual Studio .NET 2003 this is a known issue. There is a
KB article:
http://support.microsoft.com/defaul...port/kb/articles/q313/5/12.ASP&NoWebContent=1

From experience however I know that this is not always the reason. You could
use Process Explorer from Sysinternals to see what process is holding to
lock to the file 'filename':
http://www.sysinternals.com/Utilities/ProcessExplorer.html

In the past I have seen these kind of errors due to the virusscanner.

Regards

Gabriel Lozano-Morán
 
Back
Top