2011-08-31 2 views
1

내 응용 프로그램이 VS2010에서 시작될 때 5 개의 서비스가 실행 중입니다. 그리고 매번 나는이 오류가 발생합니다 : taskkill /F /IM WebDev.WebServer40.EXE내 솔루션을 시작할 때마다 웹 서비스를 죽이는

사람이 일이 왜 어떤 생각을 가지고 있습니까 :

Error 24 Unable to copy file "C:\My Project\Main\Entities\bin\Debug\Test.Testing.dll" to "bin\Test.Testing.dll". The process cannot access the file 'bin\Test.Testing.dll' because it is being used by another process.

Error 26 Unable to copy file "C:\My Project\Main\Entities\bin\Debug\Test.Testing1.dll" to "bin\Test.Testing1.dll". The process cannot access the file 'bin\Test.Testing1.dll' because it is being used by another process.

Error 23 Unable to copy file "C:\My Project\Main\Entities\bin\Debug\Test.Testing2.dll" to "bin\Test.Testing2.dll". The process cannot access the file 'bin\Test.Testing2.dll' because it is being used by another process.

Error 25 Unable to copy file "C:\My Project\Main\Entities\bin\Debug\Test.Testing3.dll" to "bin\Test.Testing3.dll". The process cannot access the file 'bin\Test.Testing3.dll' because it is being used by another process.

Error 27 Unable to copy file "C:\My Project\Main\Entities\bin\Debug\Test.Testing4.dll" to "bin\Test.Testing4.dll". The process cannot access the file 'bin\Test.Testing4.dll' because it is being used by another process.

나는 '박쥐'파일을 생성해야 이러한 웹 서비스를 죽이는. 응용 프로그램을 닫을 때마다 웹 서비스가 멈추지 않는 것처럼 보입니까?

+0

응용 프로그램을 어떻게 닫습니까? Visual Studio에서 "디버깅 중지"를 클릭하십시오. –

+0

나는 그것을했다. 그러나 서비스는 여전히 내 localhost에서 실행 중입니다. –

+0

그래서 깨끗한 시동에서 F5를 누르고 "디버깅 중지"를 누른 다음 F5 키를 다시 누르면 두 번째로 서비스 구축 과정에서 오류가 발생합니까? –

답변

1

나는 당신이 말하는 것에 대해 알고 있다고 생각합니다. WCF 라이브러리 프로젝트 속성, WCF 옵션 탭으로 이동하여 "동일한 솔루션에서 다른 프로젝트를 디버깅 할 때 WCF 서비스 호스트 시작"이라는 확인란의 선택을 취소하십시오.

이 서비스 호스트 대신, 필요한 경우 콘솔 기반 호스트를 작성하고 다른 솔루션 (최소한 내가 한 것)에서 실행하십시오.

+0

감사 Pkay. 그게 효과가 ... –

0

Visual Studio를 중지해도 VS 웹 서버가 실행을 멈추지 않습니다. 별도의 스레드를 사용하고 있습니까? 디버거를 WebDev.WebServer40.EXE 프로세스에 연결하면 어떤 코드가 아직 실행 중인지 확인할 수 있습니다.

+0

예. 디버거를 WebDev.WebServer40.EXE에 이미 연결했습니다. –

관련 문제