473,509 Members | 2,950 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compilation : The process cannot access the file ...

Sin
> Xxxxx : error PRJ0008 : Could not delete file 'd:\xxxxxxx.dll'.
Make sure that the file is not open by another process and is not write-protected.
LINK : fatal error LNK1168: cannot open ../../Debug/xxxxx.dll for writing

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

I have a big problem. I've had it for a long time but it recently got bad to
the point I cannot function with it anymore. We have a rather big solution
(47 projects). About half these projects are plain C++ win32 projects (DLLs
which export classes/functions/data). Half of those left are COM objects
which wrap some of the C++ DLLs. The others are VB.NET interface projects
which use the COM objects. The main application (EXE) is VB.NET...

A couple of these COM wrappers AS well as some of the VB projects are
dependencies of several/most of the VB projects and almost everytime I
compile the whole solution (or parts of it for that matter) I will get one
or more of the errors listed at the beginning of this msg. The usual fix is
to flush all debug data, close VS, reboot machine and then recompile all and
I'm ok for a couple more hours... Now it's got to the point i have to reboot
of EACH compilation....

ALL output of these projects is directed to the same directory (for
debugging and deployment reasons, mainly -- they are all inter-dependant)
and from what I could find this is part of the problem. We're still using
v1.0 of .NET and I suppose this could also be part of the problem. I'll
continue reading documentation to try and understand but I guess experience
from other programmers who've undoutbly hit the same problem would probably
be more interesting..........

Anyone can give me a hint on how to make all this work without resorting to
a batch file to copy all files to the EXE's debug directory or other ugly
tricks of the like?

Thanks in advance!

Alex.
Nov 20 '05 #1
0 3462

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

Similar topics

9
715
by: Paul | last post by:
Hi, VB.NET is saying the file I am creating is in use by another process and won't complete its task of moving the file to the specified destination folder. Here is my code (the main bit...
10
2330
by: Sune | last post by:
Hi, previously I used Eclipse CDT for compiling my files just to get started with C and leave C++ behind. Now it's time to get a little more serious so I've moved my files to a new workplace and...
4
8290
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:...
1
12628
by: Krissy | last post by:
Hi all, Sometimes after building a project, or uploading it to the server, when we go to view the page, we get the following error. To overcome this we have to end the aspnet_wp.exe process...
2
3677
by: Annie | last post by:
hello guys, I have a header file in the form of user control (.ascx) that all my pages inherit from it. I have a textbox that i need to access it from all the pages actually i show there user...
2
2036
by: jimjxr | last post by:
Hi, I'm trying to use ICodeCompiler.CompileAssemblyFromSource to compile C# source code (in a string) into assembly dynamically. This works fine in a console program, but fails under ASP.NET,...
0
501
by: Sin | last post by:
> Xxxxx : error PRJ0008 : Could not delete file 'd:\xxxxxxx.dll'. > Make sure that the file is not open by another process and is not write-protected. > > LINK : fatal error LNK1168: cannot open...
5
2217
by: Stuart Carnie | last post by:
I suspect it's unlikely, but you'll never know until you ask, but are there any attributes that would allow us to contribute to the compiled output? e.g. // this class exists in a separate,...
0
2950
nightangel
by: nightangel | last post by:
Hi dude,what i was done in my application is uploading a image file to my server using FTP, it work great when pushing a file into the server path using FTP. The problem i met now is i need to do a...
0
7234
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,...
1
7069
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...
0
7505
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
5652
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,...
0
3216
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...
0
3203
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
441
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...

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.