Solved

RUN SEVERAL PROJECT AT THE SAME TIME

Posted on 2013-06-17
10
325 Views
Last Modified: 2013-07-14
Hi All,

I have several project at different solution, but compiled to the same folder.
I open those project using VS. I run a project, just fine.
I run another project, I get compile message :

Error      6      Unable to copy file "obj\Debug\Interop.IWshRuntimeLibrary.dll" to "..\..\..\COMPILED\MKE\Interop.IWshRuntimeLibrary.dll". The process cannot access the file '..\..\..\COMPILED\MKE\Interop.IWshRuntimeLibrary.dll' because it is being used by another process.      vbpMKEAccLocation

What is wrong ?

Thank you.
0
Comment
Question by:emi_sastra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
10 Comments
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 39254799
You cannot copy a file, such as "obj\Debug\Interop.IWshRuntimeLibrary.dll" to a location that is being actively accessed by another process, just as the error message said.  

Why are you compiling into the same folder?

AW
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 39255078
-Why are you compiling into the same folder?
They are a integrated project.

Thank you.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39272166
Do you run both projects at the same time?
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 1

Author Comment

by:emi_sastra
ID: 39273219
I load them at visual studio in different project.
I run it one by one.
When a project is running, I try to run another project.

Thank you.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39274559
The other project is trying to copy the DLLs into a folder where your current project is running and using those DLLs. Does it work with CTRL+F5?
0
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 250 total points
ID: 39274576
Once you build both projects and run the EXEs, you won't have the problem.  It is happening because you are building the projects in order to run the in the IDE.

AW
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 39314394
Hi CodeCruiser,

I am sorry just back again.

-The other project is trying to copy the DLLs into a folder where your current project is running and using those DLLs. Does it work with CTRL+F5?
No.

Thank you.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 39314398
Hi Arthur_Wood,

-Once you build both projects and run the EXEs, you won't have the problem.
Yes, I know that.

Thank you.
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 250 total points
ID: 39314671
If you definitely want to achieve this then one of the project references will need to be changed to file references so that VS does not try to copy new DLLs over in use DLLs.
0
 
LVL 1

Author Closing Comment

by:emi_sastra
ID: 39324614
Hi All,

Thank you very much for your help.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question