Note that there are some explanatory texts on larger screens.

plurals
  1. POVisual Studio Says "It is being used by another process" - ProcessExplorer Says "No Handle"
    primarykey
    data
    text
    <p>I know this has been discussed a lot of time, but their answers did not help me.</p> <p>When I build the project it gives the following error:</p> <blockquote> <p>The process cannot access the file '..\MyProjectFolder\obj\x86\Release\MyProject.exe' because it is being used by another process.</p> </blockquote> <p>What I've tried so far:</p> <ol> <li>Closed Visual Studio 2010, and opened it again.</li> <li>Opened task manager (as administrator), no process running, named "MyProject.exe"</li> <li>Run SysInternals\handles.exe (as administrator again), there is no application having a handle to MyProject.exe. (strange!)</li> <li>Run SysInternals\ProcessExplorer.exe, searched the process name, no handle. (how come!)</li> <li>Killed the explorer.exe, and re-run. No luck.</li> <li>Tried to delete the file manually, from command line. Same error (being used by another process).</li> <li>Logged out and logged in, still the same issue.</li> <li>Restarted the machine, yes it works, but not the desired answer :).</li> </ol> <p>I'm really wondering the reason behind. This is the second time I experience this, I don't want to restart the machine again.</p> <p>All aside, how come ProcessExplorer.exe or handles.exe not show the handle! I lost my faith..</p> <p>Something very similar is discussed in the following links (even more!), but none of them helped me (or maybe I couldn't find the right one):</p> <ol> <li><a href="https://stackoverflow.com/questions/10196924/run-visual-studio-debug-the-process-cannot-access-the-file-because-it-is-being">Run Visual Studio Debug. The process cannot access the file, because it is being used by another process</a></li> <li><a href="https://stackoverflow.com/questions/7995493/visual-studio-cannot-build-a-simple-project-more-than-once">Visual Studio - Cannot build a simple project more than once</a> </li> <li><a href="https://stackoverflow.com/questions/2690119/visualstudio2010-debugging-the-process-cannot-access-the-file-because-it-i">VisualStudio2010 Debugging - The process cannot access the file ... because it is being used by another process</a></li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload