Home All Groups Group Topic Archive Search About
Author
10 Apr 2006 8:45 AM
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

Author
10 Apr 2006 9:34 AM
Morten Wennevik
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.


On Mon, 10 Apr 2006 10:45:26 +0200, Liliane CHIMG <ld_ch***@hotmail.com> 
wrote:

> 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
>
>



--
Happy Coding!
Morten Wennevik [C# MVP]
Author
10 Apr 2006 4:48 PM
Jason Hales
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
Author
10 Apr 2006 8:57 PM
Gabriel Lozano-Morán
If you are using Visual Studio .NET 2003 this is a known issue. There is a
KB article:
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/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


Show quote
"Liliane CHIMG" <ld_ch***@hotmail.com> wrote in message
news:evaWSsHXGHA.128@TK2MSFTNGP05.phx.gbl...
> 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
>

AddThis Social Bookmark Button