2

I have very simple project in WPF (PropertyChanged)- one view, one view model and one model. In this project I use package PropertyChanged.Fody. When I want to build this project after 10 second I get two error message:

  1. Could not copy "obj\Debug\PropertyChanged.exe" to "bin\Debug\PropertyChanged.exe".Exceeded retry count of 10. Failed.
  2. Unable to copy file "obj\Debug\PropertyChanged.exe" to "bin\Debug\PropertyChanged.exe". The process cannot access the file 'bin\Debug\PropertyChanged.exe' because it is being used by another process.

The only solution is:

  • unload project
  • delete folders bin and obj
  • reload project

It is very unconfortable, but I relly want to use PropertyChanged.Fody

wopi
  • 329
  • 4
  • 16
  • 1
    Sometimes the `Visual Studio Hosting Process` causes troubles. Go to the project `Properties > Debug > Enable the Visual Studio Hosting Process` and un-check it. Then see if it solves your problem. – Sandesh Apr 11 '14 at 03:16
  • Okay converted my comment to the Answer – Sandesh Apr 11 '14 at 05:26

1 Answers1

5

Sometimes the Visual Studio Hosting Process causes troubles. Go to the project Properties > Debug > Enable the Visual Studio Hosting Process and un-check it.

Sandesh
  • 2,966
  • 1
  • 20
  • 34
  • 1
    it did not solove my problem – r.hamd May 03 '15 at 12:44
  • 1
    i followed your steps ti i unchecked it but i still sometimes get Could not copy "obj\Debug\smth.exe" to "bin\Debug\smth.exe".Exceeded retry count of 10. Failed. Unable to copy file "obj\Debug\smth.exe" to "bin\Debug\smth.exe". The process cannot access the file 'bin\Debug\smth.exe' because it is being used by another process. – r.hamd May 03 '15 at 14:46
  • Did you restart Studio after making the change? The changes sometimes take effect after a restart. – Sandesh May 03 '15 at 15:38
  • hey bro, i did what you have recommended, and i have not recieved this error again, thank your , vote you up :-) – r.hamd May 10 '15 at 09:51