WCF svc 호출 시 HTTP Error 404.17 - Not Found
테스트 VPC 환경을 완전히 날린 다음,
RAID 1 구성 시 하드 디스크 장애 발생 해결에 대한 경험담
; https://www.sysnet.pe.kr/2/0/1266
다시 복구하는 과정 중에, Windows Server 2008에서 WCF svc 호출 시 다음과 같은 오류가 발생했습니다.
HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.
Detailed Error Information
Module StaticFileModule
Notification ExecuteRequestHandler
Handler StaticFile
Error Code 0x80070032
Requested URL http://localhost:8000/WCFs/CHelloWorld.svc
Physical Path D:\WebSiteTest\WCFs\CHelloWorld.svc
Logon Method Anonymous
Logon User Anonymous
몇몇 글이 검색되었지만,
HTTP Error 404.17 - Not Found, The requested content appears to be script and will not be served by the static file handler
; http://www.byteblocks.com/post/2010/03/25/HTTP-Error-40417-Not-Found.aspx
제 경우에는 svc에 대한 Handler가 제대로 설치되어 있었기 때문에 딱히 적용할 만한 것이 눈에 띄지 않았습니다.
그러다, 제가 쓴 옛날 글에서 방법을 찾았습니다. ^^
IIS 7에서 SVC 호스팅
; https://www.sysnet.pe.kr/2/0/670
사실 위의 경우에도 svc Handler가 등록되지 않았던 것이고 오류 메시지도 "405 Method Not Allowed"에 해당한 경우였지만 "404.17 - Not Found" 오류도 잘 해결을 해주었습니다.
ServiceModelReg.exe를 기억해 두어야 할 필요가 있겠군요. ^^
"%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -i
[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]