Microsoft MVP성태의 닷넷 이야기
오류 유형: 359. WCF - .svc 요청시 404 Not Found [링크 복사], [링크+제목 복사],
조회: 22808
글쓴 사람
정성태 (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

비밀번호

댓글 작성자
 




... [151]  152  153  154  155  156  157  158  159  160  161  162  163  164  165  ...
NoWriterDateCnt.TitleFile(s)
1274정성태4/17/201221423Phone: 4. "Holiday Calendar" 윈폰 응용 프로그램 등록
1273정성태4/6/201224637Phone: 3. 윈도우 폰을 위한 Holiyday Calendar 앱 개발파일 다운로드1
1272정성태4/5/201226177오류 유형: 151. ASP.NET - EcbGetUnicodeServerVariables 코드에서 System.AccessViolationException 예외 발생
1271정성태4/3/201228859Math: 6. 동전을 여러 더미로 나누는 경우의 수 세기 [1]
1270정성태3/29/201222748오류 유형: 150. Visual Studio 2010 원격 디버깅 오류 - Kerberos authentication failed
1269정성태3/27/201236578오류 유형: 149. ODP.NET 오류 - The provider is not compatible with the version of Oracle client
1268정성태3/27/201233101오류 유형: 148. WCF svc 호출 시 HTTP Error 404.17 - Not Found [1]
1267정성태3/16/201231054.NET Framework: 314. C++의 inline asm 사용을 .NET으로 포팅하는 방법 [1]파일 다운로드1
1266정성태3/14/201234260개발 환경 구성: 149. RAID 1 구성 시 하드 디스크 장애 발생 해결에 대한 경험담
1265정성태3/13/201224617VC++: 61. 아이태니엄(IA64: Itanium) 에서 겪은 C++ 포인터 연산 문제 [2]
1264정성태3/10/201243975.NET Framework: 313. WELL512 난수 발생 알고리즘 - C# [5]파일 다운로드1
1263정성태3/9/201222802개발 환경 구성: 148. tinyget 사용법
1262정성태3/8/201243694개발 환경 구성: 147. .keystore 파일에 저장된 개인키 추출 방법과 인증기관으로부터 온 공개키를 합친 pfx 파일 만드는 방법 [1]
1261정성태3/7/201224404Phone: 2. 개발자용 윈도우 폰 7 기기 등록하는 방법
1260정성태3/6/201224224Phone: 1. 윈도폰 7 개발자 (회사) 등록하는 방법 [3]
1259정성태3/4/201235704Windows: 57. 새로 추가된 네트워크 커널 디버깅 및 PowerShell 3.0 [1]
1258정성태3/3/201237356개발 환경 구성: 146. SQL Server 2012에 포함된 LocalDB 기능 소개 [3]파일 다운로드1
1257정성태3/3/201225561.NET Framework: 312. Native 스레드와 Managed 스레드 개체의 상태 관계 [1]파일 다운로드1
1256정성태3/3/201229089Math: 5. Euler's totient function - C#파일 다운로드1
1255정성태3/3/201231454Math: 4. 소수 판정 및 소인수 분해 소스 코드 - C# [1]파일 다운로드1
1254정성태3/1/201226368Windows: 56. Windows 8 Consumer Preview를 사용해 보고... [1]
1253정성태3/1/201227866VS.NET IDE: 71. Visual Studio 11 Ultimate 베타 설치 [3]
1252정성태3/1/201225235Windows: 55. 윈도우 8 베타 설치 과정 [1]
1251정성태2/27/201229187VC++: 60. C/C++ Native 스레드 콜 스택 덤프를 얻는 공개 라이브러리 [2]파일 다운로드1
1250정성태2/27/201231308VC++: 59. C/C++ 프로젝트 빌드 속도 개선 - UnityBuild를 아세요? [3]
1249정성태2/26/201230981.NET Framework: 311. .NET 스레드 콜 스택 덤프 (5) - ICorDebug 인터페이스 사용법 [2]파일 다운로드3
... [151]  152  153  154  155  156  157  158  159  160  161  162  163  164  165  ...