473,395 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Could not copy temporary files to the output directory

Bob
Cannot copy assembly '<...>' to file <...>.dll'. The process cannot access
the file because it is being used by another process.

Could not copy temporary files to the output directory.
The file '<...>.dll' cannot be copied to the run directory. The process
cannot access the file because it is being used by another process.

I'm sick of this. At times I need to tinker with a dll that's being used by
the project I'm working on - and every time I have to shut it down before I
can recompile. What can't the IDE shadow copy and just watch for changes to
the original files? Is there some setting I can set to tell it "too bad just
break when things change and make me recompile just don't lock the effin
dll's"?

I *know* the IDE can use shadow copy because I've had cases where a can
version a file but mysteriously a project can be referencing an older copy
that doesn't exist even in the GAC.

*grumble*
Bob
Nov 21 '05 #1
2 4126
If you already shut down you exe before you recompile, maybe it stays in
memory for some reason like a waiting thread. You don't have to close IDE.
See if the exe is still alive in the task manager.

"Bob" wrote:
Cannot copy assembly '<...>' to file <...>.dll'. The process cannot access
the file because it is being used by another process.

Could not copy temporary files to the output directory.
The file '<...>.dll' cannot be copied to the run directory. The process
cannot access the file because it is being used by another process.

I'm sick of this. At times I need to tinker with a dll that's being used by
the project I'm working on - and every time I have to shut it down before I
can recompile. What can't the IDE shadow copy and just watch for changes to
the original files? Is there some setting I can set to tell it "too bad just
break when things change and make me recompile just don't lock the effin
dll's"?

I *know* the IDE can use shadow copy because I've had cases where a can
version a file but mysteriously a project can be referencing an older copy
that doesn't exist even in the GAC.

*grumble*
Bob

Nov 21 '05 #2
Bob
Yes, you do if your dll contains controls. The IDE itself is 'running' the
dll for design-time functionality, as it's supposed to. My question remains,
can the IDE be forced to use shadow copy? I think it's wrong for VS to lock
satellite files given that it already allows in-project control versioning.
And I don't want to use the GAC, one of several reasons being that I can't
tell VS to throw updates into it automatically and delete all older versions
not in use.

Robert

"Amiram Korach" <Am**********@discussions.microsoft.com> wrote in message
news:66**********************************@microsof t.com...
If you already shut down you exe before you recompile, maybe it stays in
memory for some reason like a waiting thread. You don't have to close IDE.
See if the exe is still alive in the task manager.

"Bob" wrote:
Cannot copy assembly '<...>' to file <...>.dll'. The process cannot access the file because it is being used by another process.

Could not copy temporary files to the output directory.
The file '<...>.dll' cannot be copied to the run directory. The process
cannot access the file because it is being used by another process.

I'm sick of this. At times I need to tinker with a dll that's being used by the project I'm working on - and every time I have to shut it down before I can recompile. What can't the IDE shadow copy and just watch for changes to the original files? Is there some setting I can set to tell it "too bad just break when things change and make me recompile just don't lock the effin
dll's"?

I *know* the IDE can use shadow copy because I've had cases where a can
version a file but mysteriously a project can be referencing an older copy that doesn't exist even in the GAC.

*grumble*
Bob

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Etienne Charland | last post by:
Hi, I have a solution containing 6 C# projects; 1 WinForms project and 5 class libraries. I didn't have any problems until recently. I added a new project containing reports. I am using...
4
by: Mountain Bikn' Guy | last post by:
I am having serious problems with the following IDE bug: Could not write to output file 'x.dll' -- 'The process cannot access the file because it is being used by another process. ' and BUG:...
3
by: lasmit | last post by:
I am having some troubles with a project I am working on not building correctly. I converted an old ASP project to .Net and then have been adding pages to the project in C#. This all works ok,...
1
by: arkam | last post by:
Hi, I am building a solution containing one project and no special references. My dll just reached the 64KB "limit" and is 66KB now. When my DLL reached the 64KB limit IIS stopped releasing my...
5
by: Verane | last post by:
Hi, I have read the thread named "Could not copy temporary files to the output directory" on this newsgroup. And I have the same symptoms on my machine. But I didn't find any solution suitable for...
7
by: MB | last post by:
I keep getting this error now: Could not copy temporary files to the output directory. Now i searched the web and found the same two solutions: 1. Set copy local to true 2. Check for extra...
0
by: IKdev | last post by:
Hi all, I have win2003 server and NET 1.1 framework. Created simple ASP .NET app with one page that has button and a label. When trying to run got the CS0016 error (see below). My temp env....
3
by: tony | last post by:
Hello! When I build an exe file that use 6 class library dll I get this error. Could not copy temporary files to the output directory. The file 'MeltPracStorage.dll' cannot be copied to the run...
0
by: SP | last post by:
Dear all! I have written a web service which should archive files in a server directory. The files are placed in a directory that the web server can access. In the first step I copy them to a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.