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.
LVL 1
emi_sastraAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Arthur_WoodConnect With a Mentor Commented:
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
 
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
[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

 
CodeCruiserCommented:
Do you run both projects at the same time?
0
 
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
 
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
 
CodeCruiserConnect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.