The first solution I found was to close everything and restart my PC. And after that the program started to execute again.
I am kind of blanked here right now, can't seem to find the reason behind this error.
The first solution I found was to close everything and restart my PC. And after that the program started to execute again.
I am kind of blanked here right now, can't seem to find the reason behind this error.
The error messages below will appear any time your executable can't be written to. The most common cause is that your application is still in memory (even when you think it isn't) and as such cannot be overwritten.
Could not copy "obj\Debug\WPF.exe" to "bin\Debug\WPF.exe". Exceeded retry count of 10. Failed. Unable to copy file "obj\Debug\WPF.exe" to "bin\Debug\WPF.exe". The process cannot access the file "bin\Debug\WPF.exe" because it is being used by another process.
Open Task Manager to see if WPF.exe is still in memory and kill it if it is. Alternatively, execute the command below to force it to be killed.
taskkill /f /im WPF.exe
If you ran the application using Ctrl+F5 you won't get the stop debugger buttons you're probably used to and might not notice that it is still running. Alternatively, you might have some code in the application that is preventing it from shutting down cleanly which results in the main window going away but the application staying in memory.