• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 340
  • Last Modified:

RUN SEVERAL PROJECT AT THE SAME TIME

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
emi_sastra
Asked:
emi_sastra
  • 5
  • 3
  • 2
2 Solutions
 
Arthur_WoodCommented:
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
 
emi_sastraAuthor Commented:
-Why are you compiling into the same folder?
They are a integrated project.

Thank you.
0
 
CodeCruiserCommented:
Do you run both projects at the same time?
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
emi_sastraAuthor Commented:
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
 
CodeCruiserCommented:
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
 
Arthur_WoodCommented:
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
 
emi_sastraAuthor Commented:
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
 
emi_sastraAuthor Commented:
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
 
CodeCruiserCommented:
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
 
emi_sastraAuthor Commented:
Hi All,

Thank you very much for your help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 5
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now