472,975 Members | 1,685 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,975 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 4106
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.