the process can not access the file bin\debug because it is being used another process

3k Views Asked by At

Unable to copy file obj\Debug\WindowsFormsApp1.exe to bin\Debug\WindowsFormsApp1.exe. The process cannot access the file bin\Debug\WindowsFormsApp1.exe because it is being used by another process. WindowsFormsApp1.

Could not copy "obj\Debug\WindowsFormsApp1.exe" to "bin\Debug\WindowsFormsApp1.exe". Exceeded retry count of 10. Failed. The file is locked by: "WindowsFormsApp1 (11808)" WindowsFormsApp1

Hello guys what can I do with this...? I'm used to visual studio pro version 2019. I've tried and research many resources everywhere still not find and desperate to being now. Please help what can I do for know. I'm working on a pos software project right now and having a problem. When I download getting set up completed with warnings that couldn't install Microsoft.visualstudio.aspnet45.feature.

Having any solution?

1

There are 1 best solutions below

3
Mr Qian On

When I download getting set up completed with warnings that couldn't install Microsoft.visualstudio.aspnet45.feature.

Try these steps:

1) make sure that Windows Update option turns on and if there is any update, please update it.

2) run CMD as Administrator and then input the following command: DISM.exe /Online /Cleanup-image /Restorehealth

and

DISM.exe /Online /Cleanup-image /startcomponentcleanup

Note that it might take several minutes for the command to complete.

3) Run the following command: sfc /scannow and sc config trustedinstaller start=auto

4) reboot the system.

5) turn off any any anti-virus or any anti-malware

6) then Repair the install from the VS Installer

the process can not access the file bin\debug because it is being used another process

For this problem, you should shut down any WindowsFormsApp1.exe Instance on Task Manager and then restart it just as dxiv said.