473,763 Members | 7,622 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Weird error: Could not copy temporary files to the output directory.

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 ActiveReports.N et. Now, whenever I
make a change to a report in the class library and recompile, I get this
error: "Could not copy temporary files to the output directory.". I have to
close VS.Net and reopen it in order to recompile, this is very cumbersome.
Anyway, I decided to investigate to reproduce the problem. I made an exact
copy of the solution from c:\InfoForest to c:\InfoForest2. But now, I can't
reproduce the problem anymore!!! It happens on c:\InfoForest but not on
InfoForest2. I could work on c:\InfoForest2, but I'd like to be working on a
correctly named folder. I moved c:\InfoForest away and renamed
c:\InfoForest2 as c:\InfoForest, and the problem came back... WTF?

Before copying or renaming folders, I completly close VS.Net. I have
problems when the project is located in c:\InfoForest ONLY. Anyone have any
other explanation than ghosts?

I am using VS.Net 2003 and Windows XP SP2, all in english.

Thanks!
Etienne
Jul 21 '05 #1
11 1907
On 21/10/2004 Etienne Charland wrote:
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 ActiveReports.N et.
Now, whenever I make a change to a report in the class library and
recompile, I get this error: "Could not copy temporary files to the
output directory.". I have to close VS.Net and reopen it in order to
recompile, this is very cumbersome. Anyway, I decided to investigate
to reproduce the problem. I made an exact copy of the solution from
c:\InfoForest to c:\InfoForest2. But now, I can't reproduce the
problem anymore!!! It happens on c:\InfoForest but not on
InfoForest2. I could work on c:\InfoForest2, but I'd like to be
working on a correctly named folder. I moved c:\InfoForest away and
renamed c:\InfoForest2 as c:\InfoForest, and the problem came back...
WTF?

Before copying or renaming folders, I completly close VS.Net. I have
problems when the project is located in c:\InfoForest ONLY. Anyone
have any other explanation than ghosts?

I am using VS.Net 2003 and Windows XP SP2, all in english.

Thanks!
Etienne


Something is hooked into one of your DLL's and so you can't over write
it - that's why it's OK in a different directory, the hook is into the
original.

I found when writing a shell extension that after testing I had to
un-register it, then close Explorer, then I could alter it and re-build
it.

In my case I think that somehow Explorer was the suspect, perhaps not
surprising since it was a context menu extension.

--
Jeff Gaines Damerham Hampshire UK
Jul 21 '05 #2
I do not have any fency interaction with Windows. It is just a management
software in front of a SQL database.

"Jeff Gaines" <wh*********@ne wsgroup.nospam> wrote in message
news:xn******** ********@news.m icrosoft.com...
On 21/10/2004 Etienne Charland wrote:
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 ActiveReports.N et.
Now, whenever I make a change to a report in the class library and
recompile, I get this error: "Could not copy temporary files to the
output directory.". I have to close VS.Net and reopen it in order to
recompile, this is very cumbersome. Anyway, I decided to investigate
to reproduce the problem. I made an exact copy of the solution from
c:\InfoForest to c:\InfoForest2. But now, I can't reproduce the
problem anymore!!! It happens on c:\InfoForest but not on
InfoForest2. I could work on c:\InfoForest2, but I'd like to be
working on a correctly named folder. I moved c:\InfoForest away and
renamed c:\InfoForest2 as c:\InfoForest, and the problem came back...
WTF?

Before copying or renaming folders, I completly close VS.Net. I have
problems when the project is located in c:\InfoForest ONLY. Anyone
have any other explanation than ghosts?

I am using VS.Net 2003 and Windows XP SP2, all in english.

Thanks!
Etienne


Something is hooked into one of your DLL's and so you can't over write
it - that's why it's OK in a different directory, the hook is into the
original.

I found when writing a shell extension that after testing I had to
un-register it, then close Explorer, then I could alter it and re-build
it.

In my case I think that somehow Explorer was the suspect, perhaps not
surprising since it was a context menu extension.

--
Jeff Gaines Damerham Hampshire UK

Jul 21 '05 #3
Hi Etienne

Have a look at the Project | Properties dialogue. There is a section
"Reference Path" that shows where references are found. When you rename a
directory, the reference path is not changed, so the problem goes away (as
another respondent hinted). When you rename back again the problem
re-appears.

Check for circular references, that is Project A references Project B, that
references Project C, that references Project A. This kind of thing is
allowed but can cause such problems. Also, it is preferable (because of a
problem in VS) to reference projects, rather than the DLL output from these
projects.

HTH

Charles
"Etienne Charland" <mystery at golden.net> wrote in message
news:vZ******** ************@b2 b2c.ca...
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 ActiveReports.N et. Now, whenever I
make a change to a report in the class library and recompile, I get this
error: "Could not copy temporary files to the output directory.". I have
to close VS.Net and reopen it in order to recompile, this is very
cumbersome. Anyway, I decided to investigate to reproduce the problem. I
made an exact copy of the solution from c:\InfoForest to c:\InfoForest2.
But now, I can't reproduce the problem anymore!!! It happens on
c:\InfoForest but not on InfoForest2. I could work on c:\InfoForest2, but
I'd like to be working on a correctly named folder. I moved c:\InfoForest
away and renamed c:\InfoForest2 as c:\InfoForest, and the problem came
back... WTF?

Before copying or renaming folders, I completly close VS.Net. I have
problems when the project is located in c:\InfoForest ONLY. Anyone have
any other explanation than ghosts?

I am using VS.Net 2003 and Windows XP SP2, all in english.

Thanks!
Etienne

Jul 21 '05 #4
There is nothing wrong in Reference Path. I have alot of references between
the projects, so that could cause circular reference but... then, the
problem wouldn't go away when moving the solution. It's not that. I have
always added project references.

Etienne

"Charles Law" <bl***@nowhere. com> wrote in message
news:ec******** ******@TK2MSFTN GP09.phx.gbl...
Hi Etienne

Have a look at the Project | Properties dialogue. There is a section
"Reference Path" that shows where references are found. When you rename a
directory, the reference path is not changed, so the problem goes away (as
another respondent hinted). When you rename back again the problem
re-appears.

Check for circular references, that is Project A references Project B,
that references Project C, that references Project A. This kind of thing
is allowed but can cause such problems. Also, it is preferable (because of
a problem in VS) to reference projects, rather than the DLL output from
these projects.

HTH

Charles
"Etienne Charland" <mystery at golden.net> wrote in message
news:vZ******** ************@b2 b2c.ca...
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 ActiveReports.N et. Now, whenever I
make a change to a report in the class library and recompile, I get this
error: "Could not copy temporary files to the output directory.". I have
to close VS.Net and reopen it in order to recompile, this is very
cumbersome. Anyway, I decided to investigate to reproduce the problem. I
made an exact copy of the solution from c:\InfoForest to c:\InfoForest2.
But now, I can't reproduce the problem anymore!!! It happens on
c:\InfoForest but not on InfoForest2. I could work on c:\InfoForest2, but
I'd like to be working on a correctly named folder. I moved c:\InfoForest
away and renamed c:\InfoForest2 as c:\InfoForest, and the problem came
back... WTF?

Before copying or renaming folders, I completly close VS.Net. I have
problems when the project is located in c:\InfoForest ONLY. Anyone have
any other explanation than ghosts?

I am using VS.Net 2003 and Windows XP SP2, all in english.

Thanks!
Etienne


Jul 21 '05 #5
On 21/10/2004 Etienne Charland wrote:
I do not have any fency interaction with Windows. It is just a
management software in front of a SQL database.


I would still suspect that 'something' is using one of the DLL's.

Can you delete them? There is a utility called 'WhoLockMe' which will
tell you what is locking a file if you can't delete it.

--
Jeff Gaines Damerham Hampshire UK
Jul 21 '05 #6
I wasn't suggesting that there was anything necessarily wrong in the
reference path. I was trying to explain why the problem goes away when you
rename the directory. When the directory has been renamed the reference path
remains unchanged, so the project references refer to the old location. When
you build the solution, the output from each project is created in the new
directory hierarchy. However, when references are resolved they are from the
original directory hierarchy. The result is no locking conflict, but you
will also find that you are not using the most recently built dlls from your
referenced projects.

Charles
"Etienne Charland" <mystery at golden.net> wrote in message
news:lr******** ************@b2 b2c.ca...
There is nothing wrong in Reference Path. I have alot of references
between the projects, so that could cause circular reference but... then,
the problem wouldn't go away when moving the solution. It's not that. I
have always added project references.

Etienne

"Charles Law" <bl***@nowhere. com> wrote in message
news:ec******** ******@TK2MSFTN GP09.phx.gbl...
Hi Etienne

Have a look at the Project | Properties dialogue. There is a section
"Reference Path" that shows where references are found. When you rename a
directory, the reference path is not changed, so the problem goes away
(as another respondent hinted). When you rename back again the problem
re-appears.

Check for circular references, that is Project A references Project B,
that references Project C, that references Project A. This kind of thing
is allowed but can cause such problems. Also, it is preferable (because
of a problem in VS) to reference projects, rather than the DLL output
from these projects.

HTH

Charles
"Etienne Charland" <mystery at golden.net> wrote in message
news:vZ******** ************@b2 b2c.ca...
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 ActiveReports.N et. Now,
whenever I make a change to a report in the class library and recompile,
I get this error: "Could not copy temporary files to the output
directory.". I have to close VS.Net and reopen it in order to recompile,
this is very cumbersome. Anyway, I decided to investigate to reproduce
the problem. I made an exact copy of the solution from c:\InfoForest to
c:\InfoForest2. But now, I can't reproduce the problem anymore!!! It
happens on c:\InfoForest but not on InfoForest2. I could work on
c:\InfoForest2, but I'd like to be working on a correctly named folder.
I moved c:\InfoForest away and renamed c:\InfoForest2 as c:\InfoForest,
and the problem came back... WTF?

Before copying or renaming folders, I completly close VS.Net. I have
problems when the project is located in c:\InfoForest ONLY. Anyone have
any other explanation than ghosts?

I am using VS.Net 2003 and Windows XP SP2, all in english.

Thanks!
Etienne



Jul 21 '05 #7
I can delete the DLLs, but not the EXE. WhoLockMe looks like a great
utility, but it doesn't seem to work on XP SP2 :( The context menu
appeared, but clicking on it doesn't do anything.

Btw, I completly moved the solution to a different folder. This makes the
problem go away, but not because it references other DLLs. There is only one
version.

Etienne

"Jeff Gaines" <wh*********@ne wsgroup.nospam> wrote in message
news:xn******** *******@news.mi crosoft.com...
On 21/10/2004 Etienne Charland wrote:
I do not have any fency interaction with Windows. It is just a
management software in front of a SQL database.


I would still suspect that 'something' is using one of the DLL's.

Can you delete them? There is a utility called 'WhoLockMe' which will
tell you what is locking a file if you can't delete it.

--
Jeff Gaines Damerham Hampshire UK

Jul 21 '05 #8
Hi Etienne

I had the same problem with WhoLockMe. After I rebooted and tried again it
worked. I also have XP Pro with SP2.

HTH

Charles
"Etienne Charland" <mystery at golden.net> wrote in message
news:Q-*************** *****@b2b2c.ca. ..
I can delete the DLLs, but not the EXE. WhoLockMe looks like a great
utility, but it doesn't seem to work on XP SP2 :( The context menu
appeared, but clicking on it doesn't do anything.

Btw, I completly moved the solution to a different folder. This makes the
problem go away, but not because it references other DLLs. There is only
one version.

Etienne

"Jeff Gaines" <wh*********@ne wsgroup.nospam> wrote in message
news:xn******** *******@news.mi crosoft.com...
On 21/10/2004 Etienne Charland wrote:
I do not have any fency interaction with Windows. It is just a
management software in front of a SQL database.


I would still suspect that 'something' is using one of the DLL's.

Can you delete them? There is a utility called 'WhoLockMe' which will
tell you what is locking a file if you can't delete it.

--
Jeff Gaines Damerham Hampshire UK


Jul 21 '05 #9
I should add, if it doesn't find any locks then no window is displayed :-(

Charles
"Etienne Charland" <mystery at golden.net> wrote in message
news:Q-*************** *****@b2b2c.ca. ..
I can delete the DLLs, but not the EXE. WhoLockMe looks like a great
utility, but it doesn't seem to work on XP SP2 :( The context menu
appeared, but clicking on it doesn't do anything.

Btw, I completly moved the solution to a different folder. This makes the
problem go away, but not because it references other DLLs. There is only
one version.

Etienne

"Jeff Gaines" <wh*********@ne wsgroup.nospam> wrote in message
news:xn******** *******@news.mi crosoft.com...
On 21/10/2004 Etienne Charland wrote:
I do not have any fency interaction with Windows. It is just a
management software in front of a SQL database.


I would still suspect that 'something' is using one of the DLL's.

Can you delete them? There is a utility called 'WhoLockMe' which will
tell you what is locking a file if you can't delete it.

--
Jeff Gaines Damerham Hampshire UK


Jul 21 '05 #10

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

Similar topics

1
5038
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I double-checked the path to my error log. It is in /var/www/logs/php_error_log Thanks. :) -Wayne Stevenson
11
1419
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 ActiveReports.Net. Now, whenever I make a change to a report in the class library and recompile, I get this error: "Could not copy temporary files to the output directory.". I have to close VS.Net and reopen it in order to recompile, this is very cumbersome....
5
3059
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 me. (I don't use ASP.NET or any web service at all, only windows forms). Here is how I work : I have a solution with 10 projects inside. Each of them is built in a different directory (MyProject/bin/debug for each project). I have then a...
3
3742
by: JeffM | last post by:
I have a .dat file on a remote server that seems to be locked. I have tried to FTP to it and delete it, rename it, copy over it and I get the error. "Could not copy temporary files to the output directory" Anybody have any idea why this file is locked? What do I have to do to release it? TIA ~jeff
0
2109
by: Don | last post by:
I intermittently get a runtime Compilation Error that says 'The compiler failed with error code 2000'. It appears that a DLL cannot be found in the 'temporary asp.net files' directory. The Detailed Compiler Output is at the bottom of this post. This is a custom dll named UtilitiesINGR.dll that I put in the GAC. I added a machine.config entry to instruct my app to use the GAC entry. Now I need to remove the dll from the GAC so I can...
5
1500
by: genc_ymeri | last post by:
Hi over there, We are a team of 6 developping web applications (ASP.Net/C#/VB.Net/SQLServer). What happens is that randomly, each of us get the below error in (PS). We believe that the "acess is denied" error description is a "dummy message" b/c the file name changes the very next time we compile for no reasons. (we think that it didn't have any reason in the first place b/c no changes of any kind were done to it or to the...
3
2346
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 directory. Det går inte att komma åt filen eftersom den används av en annan process. All six project is located in the solution that build the exe file This compile error occurred when I add project 'MeltPracStorage to the
0
1567
by: amitda | last post by:
I am getting following error while trying to access sql server report manager: I saw an msdn article about similar issue, made sure c:\temp exists and pointed TMP and TEMP sys env var to that. Also made sure Temporary ASP.NET Files directory can be accessed by NETWORK SERVICE and ASPNET accounts. Still no luck. Anyone can suggest anything else???? Please help. Thanks
0
1100
by: awdigrigoli | last post by:
I have a VB.NET 2003 Windows application that was working fine, but is now starting to have strange problems. I have a ListView user control that I use on several forms. The Height and Width are set in the user control. If I make any changes to one of the forms that contains the ListView control and then Build my project the ListView increases in size. No matter what I do I can't get it to stop growing.
0
9564
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10148
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10002
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9938
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8822
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6643
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2794
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.