Ask the Expert

Can we make it so more than one programmer can access a directory simulatenously?

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.

This was first published in August 2003

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: