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

비밀번호

댓글 작성자
 




... 91  92  93  [94]  95  96  97  98  99  100  101  102  103  104  105  ...
NoWriterDateCnt.TitleFile(s)
11290정성태9/3/201716943개발 환경 구성: 326. 아파치 서버에서 ASP.NET을 실행하는 mod_aspdotnet 모듈 [2]
11289정성태9/3/201714274개발 환경 구성: 325. GAC에 어셈블리 등록을 위해 gacutil.exe을 사용하는 경우 주의 사항
11288정성태9/3/201711959개발 환경 구성: 324. 윈도우용 XAMPP의 아파치 서버 구성 방법
11287정성태9/1/201720804.NET Framework: 680. C# - 작업자(Worker) 스레드와 UI 스레드 [11]
11286정성태8/28/20179051기타: 67. App Privacy Policy
11285정성태8/28/201716911.NET Framework: 679. C# - 개인 키 보안의 SFTP를 이용한 파일 업로드파일 다운로드1
11284정성태8/27/201714842.NET Framework: 678. 데스크톱 윈도우 응용 프로그램에서 UWP 라이브러리를 이용한 비디오 장치 열람하는 방법 [1]파일 다운로드1
11283정성태8/27/201711061오류 유형: 418. CSS3117: @font-face failed cross-origin request. Resource access is restricted.
11282정성태8/26/201713434Math: 22. 행렬로 바라보는 피보나치 수열
11281정성태8/26/201714898.NET Framework: 677. Visual Studio 2017 - NuGet 패키지를 직접 참조하는 PackageReference 지원 [2]
11280정성태8/24/201711826디버깅 기술: 94. windbg - 풀 덤프에 포함된 모든 모듈을 파일로 저장하는 방법
11279정성태8/23/201722993.NET Framework: 676. C# Thread가 Running 상태인지 아는 방법
11278정성태8/23/201711711오류 유형: 417. TFS - Warning - Unable to refresh ... because you have a pending edit. [1]
11277정성태8/23/201713044오류 유형: 416. msbuild - error MSB4062: The "TransformXml" task could not be loaded from the assembly
11276정성태8/23/201716794.NET Framework: 675. C# - (파일) 확장자와 연결된 실행 파일 경로 찾기 [2]파일 다운로드1
11275정성태8/23/201725293개발 환경 구성: 323. Visual Studio 설치 없이 빌드 환경 구성 - Visual Studio 2017용 Build Tools [1]
11274정성태8/22/201712989.NET Framework: 674. Thread 타입의 Suspend/Resume/Join 사용 관련 예외 처리
11273정성태8/22/201715578오류 유형: 415. 윈도우 업데이트 에러 Error 0x80070643
11272정성태8/21/201717163VS.NET IDE: 120. 비주얼 스튜디오 2017 버전 15.3.1 - C# 7.1 공개 [2]
11271정성태8/19/201712784VS.NET IDE: 119. Visual Studio 2017에서 .NET Core 2.0 프로젝트 환경 구성하는 방법
11270정성태8/17/201723253.NET Framework: 673. C#에서 enum을 boxing 없이 int로 변환하기 [2]
11269정성태8/17/201714428디버깅 기술: 93. windbg - 풀 덤프에서 .NET 스레드의 상태를 알아내는 방법
11268정성태8/14/201713772디버깅 기술: 92. windbg - C# Monitor Lock을 획득하고 있는 스레드 찾는 방법
11267정성태8/10/201717590.NET Framework: 672. 모노 개발 환경
11266정성태8/10/201716308.NET Framework: 671. C# 6.0 이상의 소스 코드를 Visual Studio 설치 없이 명령행에서 컴파일하는 방법
11265정성태8/10/201741381기타: 66. 도서: 시작하세요! C# 7.1 프로그래밍: 기본 문법부터 실전 예제까지 [11]
... 91  92  93  [94]  95  96  97  98  99  100  101  102  103  104  105  ...