Microsoft MVP성태의 닷넷 이야기
오류 유형: 359. WCF - .svc 요청시 404 Not Found [링크 복사], [링크+제목 복사],
조회: 23940
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

WCF - .svc 요청시 404 Not Found

테스트 서버 구성 시, "webHttpBinding" 유형의 WCF 서비스를 호출하는 데 다음과 같은 오류가 발생했습니다.

Server Error in '/' Application.

The remote server returned an error: (404) Not Found. 
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

 Exception Details: System.Net.WebException: The remote server returned an error: (404) Not Found.

Source Error: 

 An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 

[WebException: The remote server returned an error: (404) Not Found.]
   System.Net.HttpWebRequest.GetResponse() +1923
   System.ServiceModel.Channels.HttpChannelRequest.WaitForReply(TimeSpan timeout) +84

[EndpointNotFoundException: There was no endpoint listening at http://localhost:8010/WCFs/CHelloWorld.svc/date/2012/05/06 that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.]
   System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +357
   System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +1377
   WcfInterfaceLib.IHelloWorld.GetDate(String year, String month, String day) +0
   WebSiteTest.CallService.Page_Load(Object sender, EventArgs e) in d:\WebSiteTest4\CallService.aspx.cs:135
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4812

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1586.0  

예전에도 이와 유사한 오류가 있었는데,

WCF svc 호출 시 HTTP Error 404.17 - Not Found
; https://www.sysnet.pe.kr/2/0/1268

HTTP 오류 코드는 달랐지만 그래도 한번 시도를 해봤습니다. 그랬더니, Windows Server 2016에서는 이런 오류가 발생하는군요. ^^

C:\Windows\Microsoft.NET\Framework\v4.0.30319>ServiceModelReg.exe -i -c:httpnamespace
Microsoft (R) WCF/WF registration tool version 4.5.0.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Administration utility that manages the installation and uninstallation of
WCF and WF components on a single machine.

[Error] This tool is not supported on this version of Windows. Administrators should instead install/uninstall Windows Communication Foundation features using the 'Turn Windows Features On/Off' dialog, or the dism command line tool.

"Error" 메시지에서 시키는 대로 ^^ WCF 서비스 중 "HTTP Activation"을 설정하는 것으로 해결했습니다.

wcf_svc_404_1.png




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 10/12/2016]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 166  167  168  169  [170]  171  172  173  174  175  176  177  178  179  180  ...
NoWriterDateCnt.TitleFile(s)
807정성태11/23/200928447웹: 14. 로컬에 있는 HTML 페이지를 보호 모드에서 여는 방법
802정성태11/19/200930538.NET Framework: 167. 다른 스레드의 호출 스택 덤프 구하는 방법파일 다운로드1
801정성태11/18/200938018개발 환경 구성: 55. Hyper-V와 고성능 그래픽 카드의 성능 문제 해결 [1]
800정성태11/13/200930869VS.NET IDE: 66. 수동으로 구성해 본 VC++ 프로젝트 설정: ReleaseMinDependency
798정성태11/10/200929524개발 환경 구성: 54. .NET 개발자가 처음 설치해 본 TOMCAT [2]
797정성태11/9/200925726개발 환경 구성: 53. 물리 PC에 설치된 Windows 7을 Hyper-V로 이전하면?
796정성태11/2/200929815오류 유형: 89. Windows 7 백업 오류 - 0x80070057
795정성태11/2/200926919오류 유형: 88. TFS 2010 (beat2) 설치 오류 -TF255272
793정성태10/19/200928901.NET Framework: 166. WPF - XAML 요소의 네임스페이스와 CLR 타입 매핑
792정성태10/17/200929232웹: 13. IIS 7.5 에서 SQL Express 연결 시 오류
791정성태10/17/200933071웹: 12. 요청 페이지에 대해 빈 화면만 보이는 경우 [1]
789정성태10/13/200928967COM 개체 관련: 22. BB FlashBack SDK와 ActiveX 버전 관리 [7]
786정성태10/9/200925110개발 환경 구성: 52. 테스트를 위한 평가판 운영체제 구하기
785정성태10/8/200931564.NET Framework: 165. WPF - UI 업데이트를 바로 반영하고 싶다면? (2)파일 다운로드1
783정성태10/7/200929348.NET Framework: 164. WPF - 데이터 바인딩된 트리에서 부모 노드 찾는 방법 [1]파일 다운로드1
782정성태10/6/200931358개발 환경 구성: 51. Windows 7 - 다중 원격 접속(Remote Desktop) 허용
781정성태9/30/200928136.NET Framework: 163. WPF - TreeView 자동 스크롤 기능 해지 [2]파일 다운로드1
780정성태9/28/200932218Windows: 48. Windows 7/2008에서 ping을 위한 echo 요청 열기 [2]
779정성태9/24/200923615.NET Framework: 162. WPF - 중첩된 ScrollViewer의 크기 제어 - 두 번째 이야기파일 다운로드1
778정성태9/23/200925252오류 유형: 87. 시스템 시간 변경 후 Session이 맺어진 WCF 클라이언트의 예외 발생파일 다운로드1
776정성태9/17/200924338개발 환경 구성: 50. Reference assembly
775정성태9/13/200941035VC++: 37. XmlCodeGenerator를 C/C++ 코드 생성에 적용 [2]파일 다운로드1
773정성태9/5/200931678오류 유형 : 85. DEP 비호환 ActiveX 오류
772정성태9/2/200928098.NET Framework: 161. WPF - 윈도우 이벤트 가로채기 [1]파일 다운로드1
771정성태8/28/200922126.NET Framework: 160. WPF - 입력 포커스 외곽선 없애는 방법
770정성태8/26/200924491.NET Framework: 159. WCF - 같은 컴퓨터에서만 WCF 요청을 서비스하도록 설정
... 166  167  168  169  [170]  171  172  173  174  175  176  177  178  179  180  ...