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

The process cannot access the file because it is being used by another process.

I've inherited a system w/5 projects - I'll refer to them
as P1 thru P5 - P5 being the executable...
P1 has no dependents.
P2 is dependant upon P1
P3 has no dependents.
P4 is dependant upon P1, P2, P3
P5 is dependant upon P1, P2, P3, P4

The build order is:
P1, P2, P3, P4, P5

So far so good?

I'm setting the 'Build' path of each project to
Px\obj\debug with the exception of the main project (P5)-
that is being built into its \BIN folder...

When I set the necessary references that each project
needs to reference, for example, P2 needs a reference to
P1, so I'll set that to P1\obj\debug\P1.DLL and so on.

What I'm getting now for the first 4 projects is:
Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC31019: Unable to write to output
file 'C:\xxx\obj\Debug\P1.dll': The process cannot access
the file because it is being used by another process.
Building satellite assemblies...

and each one fails...

Can someone tell me (or point me somewhere) what I'm doing
wrong???

Thanx
JK

Nov 18 '05 #1
4 8826
I would recommend opening each project in it's own solution. Quirky things
tend to happen with multiple projects in the same solution, I've found that
this way I avoid any problems.

"Jerry" <Je****@PikeOnline.net> wrote in message
news:01****************************@phx.gbl...
I've inherited a system w/5 projects - I'll refer to them
as P1 thru P5 - P5 being the executable...
P1 has no dependents.
P2 is dependant upon P1
P3 has no dependents.
P4 is dependant upon P1, P2, P3
P5 is dependant upon P1, P2, P3, P4

The build order is:
P1, P2, P3, P4, P5

So far so good?

I'm setting the 'Build' path of each project to
Px\obj\debug with the exception of the main project (P5)-
that is being built into its \BIN folder...

When I set the necessary references that each project
needs to reference, for example, P2 needs a reference to
P1, so I'll set that to P1\obj\debug\P1.DLL and so on.

What I'm getting now for the first 4 projects is:
Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC31019: Unable to write to output
file 'C:\xxx\obj\Debug\P1.dll': The process cannot access
the file because it is being used by another process.
Building satellite assemblies...

and each one fails...

Can someone tell me (or point me somewhere) what I'm doing
wrong???

Thanx
JK

Nov 18 '05 #2
Jerry wrote:
I've inherited a system w/5 projects - I'll refer to them
as P1 thru P5 - P5 being the executable...
P1 has no dependents.
P2 is dependant upon P1
P3 has no dependents.
P4 is dependant upon P1, P2, P3
P5 is dependant upon P1, P2, P3, P4
The build order is:
P1, P2, P3, P4, P5


Jerry,
Make sure you don't have a trailing backslash in root web application
http://www.able-consulting.com/dotne...net_faq.htm#Q9

Also, I would open each propect seperatly and make sure each
one compiles correctly. Then create a new solution and add each
project one at a time (P1, P3, P2, P4, P5). Visual Studio .NET
should be able to figure out the depencencies for you. You should
then be able to do a Build | Rebuild Solution and all should be well.

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP
http://www.able-consulting.com

Nov 18 '05 #3
I've tried that as well...Seems if I try to open up
p3.vbproj, the entire solution opens...I'm not able to
open just one project at a time...

JK
-----Original Message-----
I would recommend opening each project in it's own solution. Quirky thingstend to happen with multiple projects in the same solution, I've found thatthis way I avoid any problems.

"Jerry" <Je****@PikeOnline.net> wrote in message
news:01****************************@phx.gbl...
I've inherited a system w/5 projects - I'll refer to them as P1 thru P5 - P5 being the executable...
P1 has no dependents.
P2 is dependant upon P1
P3 has no dependents.
P4 is dependant upon P1, P2, P3
P5 is dependant upon P1, P2, P3, P4

The build order is:
P1, P2, P3, P4, P5

So far so good?

I'm setting the 'Build' path of each project to
Px\obj\debug with the exception of the main project (P5)- that is being built into its \BIN folder...

When I set the necessary references that each project
needs to reference, for example, P2 needs a reference to
P1, so I'll set that to P1\obj\debug\P1.DLL and so on.

What I'm getting now for the first 4 projects is:
Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC31019: Unable to write to output
file 'C:\xxx\obj\Debug\P1.dll': The process cannot access the file because it is being used by another process.
Building satellite assemblies...

and each one fails...

Can someone tell me (or point me somewhere) what I'm doing wrong???

Thanx
JK

.

Nov 18 '05 #4
That's really strange, since a project cannot know about which solution it
is in, and in fact could be in multiple solution files.

But if this is the case, then create all new projects, add in the
corresponding code files and recompile. This should only take a few
minutes.

"Jerry" <Je****@Pikeonline.net> wrote in message
news:01****************************@phx.gbl...
I've tried that as well...Seems if I try to open up
p3.vbproj, the entire solution opens...I'm not able to
open just one project at a time...

JK
-----Original Message-----
I would recommend opening each project in it's own

solution. Quirky things
tend to happen with multiple projects in the same

solution, I've found that
this way I avoid any problems.

"Jerry" <Je****@PikeOnline.net> wrote in message
news:01****************************@phx.gbl...
I've inherited a system w/5 projects - I'll refer to them as P1 thru P5 - P5 being the executable...
P1 has no dependents.
P2 is dependant upon P1
P3 has no dependents.
P4 is dependant upon P1, P2, P3
P5 is dependant upon P1, P2, P3, P4

The build order is:
P1, P2, P3, P4, P5

So far so good?

I'm setting the 'Build' path of each project to
Px\obj\debug with the exception of the main project (P5)- that is being built into its \BIN folder...

When I set the necessary references that each project
needs to reference, for example, P2 needs a reference to
P1, so I'll set that to P1\obj\debug\P1.DLL and so on.

What I'm getting now for the first 4 projects is:
Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC31019: Unable to write to output
file 'C:\xxx\obj\Debug\P1.dll': The process cannot access the file because it is being used by another process.
Building satellite assemblies...

and each one fails...

Can someone tell me (or point me somewhere) what I'm doing wrong???

Thanx
JK

.

Nov 18 '05 #5

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

Similar topics

9
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...
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:...
2
by: Raed Sawalha | last post by:
Hello , I have windows service which do listening to specified directory using FileSystemWatcher , on Created Event and Get all the files in the directory using Directory.GetFiles function then...
3
by: guoqi zheng | last post by:
Dear sir, There is an import tool on my web application, user can upload Ms Access file, the file is saved at a temp folder on the server. After the import is finished, for security reason, I...
2
by: Piyush | last post by:
Hi, I am getting the error "The process cannot access the file "C:\Documents and Settings\piyush\Desktop\200309181051.ktl" because it is being used by another process." when I try to open this...
0
by: chris | last post by:
In VB6.0 I was using API calls for checking that a process has finished and then continue with other steps: var_process_number = Shell("wzunzip.exe -o " & """" & fld_ZIP_file_name & """" & " " &...
0
by: imranabdulaziz | last post by:
Dear All, I am making web application using Asp.net C#(Visual Studio2005). And Sql server 2005 as a back End I generated local mode report but as there was no printing option available . I assign...
0
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...
3
by: gracepaul | last post by:
hi, i got an exception while i m trying to zip/unzip a database inside the serverfolder System.IO.IOException: The process cannot access the file...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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
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
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.