The file "bin \ Debug \ WindowsFormsApplication2.exe" is being used by another process. Therefore, this process cannot access this file ., Bindebug
Http://zhidao.baidu.com/question/221394579.html? California % 22% B8 % B4 % D6 % C6 % B5 % BD % 22bin % 5 CDebug % 5C % B5 % E7 % D3 % B0 % BC % C7
Obviously, this is because you have run this program in DEBUG mode!
Then you simply click X to turn it off. This shows a problem,
A problem occurs in the exit code of your program. As a result, after you click X to close the interface, the process of the program is not terminated!
Therefore, when you plan to generate the EXE file for the second time, the file cannot be written because the process that starts to generate the EXE file is running!
It is suggested that you add the program code to the release process. Of course, you need to find the windowsformsapplication2.exe process and stop it before you can regenerate the program.
Http://zhidao.baidu.com/link? Url = Response
In this case, the windowsformsapplication9.exe you generated is still running and is not completely closed. The possible causes include:
1. Use this. Hide (); To Hide the form, rather than actually close the form.
2. The form is not closed.
Solution:
1. Use Application. Exit (); to close all processes of the program.
2.open the task manager and manually execute windowsformsapplication9.exe.
3. restart the computer (tried, valid)