문제

I have a server software that is written in C#. Sometimes I take this error:

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

How can I understand that my program is still running in background and stop that?

도움이 되었습니까?

해결책

This is most probably caused not by your software (the one you are writing), but by IDE itself.

I usually just use Task Manager to kill whatever vshost process is still hanging, but that may not be very safe. Or sometimes all it takes is to restart Visual Studio.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top