473,407 Members | 2,326 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,407 software developers and data experts.

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.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.
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 1851
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.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. 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*********@newsgroup.nospam> wrote in message
news:xn****************@news.microsoft.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.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. 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********************@b2b2c.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.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. 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**************@TK2MSFTNGP09.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********************@b2b2c.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.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. 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********************@b2b2c.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**************@TK2MSFTNGP09.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********************@b2b2c.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.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. 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*********@newsgroup.nospam> wrote in message
news:xn***************@news.microsoft.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*********@newsgroup.nospam> wrote in message
news:xn***************@news.microsoft.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*********@newsgroup.nospam> wrote in message
news:xn***************@news.microsoft.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
On 22/10/2004 Charles Law wrote:
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/Charles

Thanks for that, I've been using WhoLockMe for a while and I didn't
realise you could register the DLL and run it from the context menu :-)
It's a useful utility.

Are you OK with your app now Etienne?

--
Jeff Gaines Damerham Hampshire UK
Jul 21 '05 #11
WhoLockMe is still not working. But anyway, I know it is locked by Visual
Studio. The EXE file gets locked whenever I open the Active Reports designer
in one of the DLLs. I still don't know why...

Etienne

"Jeff Gaines" <wh*********@newsgroup.nospam> wrote in message
news:xn***************@news.microsoft.com...
On 22/10/2004 Charles Law wrote:
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/Charles

Thanks for that, I've been using WhoLockMe for a while and I didn't
realise you could register the DLL and run it from the context menu :-)
It's a useful utility.

Are you OK with your app now Etienne?

--
Jeff Gaines Damerham Hampshire UK

Jul 21 '05 #12

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

Similar topics

1
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...
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...
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...
3
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...
0
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...
5
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...
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: 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....
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.