We are working on VB.NET and have our code residing on a server. When one programmer is running the application...
(in the VS.NET IDE), if another programmer tries to run the application he/she will get the message:
"The file "APEX.exe" cannot be copied to the run directory. The process cannot access the file because it is in use by another process."
Please help us in solving the issue, so that more than one of us can execute the program using VS IDE simultaneously. Thank you.
If I read this correctly, you have the output directory for the compiled application going to a shared directory. What you're seeing is that the operating system locks the EXE file when it's executing. There's nothing you can do to change that because, for optimization purposes, the operating system continues reading the EXE as it executes. If you changed the EXE underneath the operating system, you'd be visiting crash city. I strongly recommend that you have each developer set their own output directory.
Related Q&A from John Robbins
What is a JAD session? This term is referred to often in job postings and seems like some kind of brainstorm you carry out with a client to define IT...continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.