Microsoft MVP성태의 닷넷 이야기
.NET Framework: 124. IIS 7에서 SVC 호스팅 [링크 복사], [링크+제목 복사],
조회: 29922
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 2개 있습니다.)
IIS 7에서 SVC 호스팅


정말... ^^; Oxite 설치때문에 많은 시행착오를 거치는군요.

Live Writer를 이용해서 Metaweblog API 사용을 설정하는 과정에서 다음과 같은 오류가 발생했습니다.

"
An error occurred while attempting to connect to your blog:
Server Error - The server reported an error with the following URL:
http://localhost/MetaWeblog.svc
405 Method Not Allowed
You must correct this error before proceeding.
"



직접 IE를 이용해서 "http://localhost/MetaWeblog.svc"와 같이 입력했더니 찾을 수 없다고 나옵니다. ^^; IIS 7 관리자에서 보니까, svc 확장자에 대한 핸들러가 전혀 매핑되어 있지 않았습니다. 그래서 예전에 제가 썼던 자료를 한번 찾아봤는데요.

WCF 서비스를 IIS에서 호스팅 하는 방법
; https://www.sysnet.pe.kr/2/0/382

그런데 ^^; IIS 6을 기반으로 써놓았네요. IIS 7에서는 달라졌지요. 그래서 관련 자료를 좀 더 찾아봤더니 ^^ 이미 마이크로소프트가 servicemodelreg.exe라는 응용 프로그램을 제공해 주는군요. ^^

Hosting a WCF service in IIS7
; http://www.u2u.info/Blogs/Peter/Lists/Posts/Post.aspx?ID=151

즉, 다음과 같이 실행해서 해결이 되었습니다.

C:\>"%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe"  -i
Microsoft(R) Windows Communication Foundation Installation Utility
[Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.648]
Copyright (c) Microsoft Corporation.  All rights reserved.

Installing: Machine.config Section Groups and Handlers
Installing: System.Web Build Provider
Installing: System.Web Compilation Assemblies
Installing: HTTP Handlers
Installing: HTTP Modules
Installing: ListenerAdapter node for protocol net.tcp
Installing: Protocol node for protocol net.tcp
Installing: TransportConfiguration node for protocol net.tcp
Installing: ListenerAdapter node for protocol net.pipe
Installing: Protocol node for protocol net.pipe
Installing: TransportConfiguration node for protocol net.pipe
Installing: ListenerAdapter node for protocol net.msmq
Installing: Protocol node for protocol net.msmq
Installing: TransportConfiguration node for protocol net.msmq
Installing: ListenerAdapter node for protocol msmq.formatname
Installing: Protocol node for protocol msmq.formatname
Installing: TransportConfiguration node for protocol msmq.formatname
Installing: HTTP Modules (WAS)
Installing: HTTP Handlers (WAS)

C:\Windows\system32>

실행 후에, IIS 7 관리자에서 확인해 보면 다음과 같은 항목을 볼 수 있습니다.

[그림 1: IIS 7에 등록된 SVC Handler]
how_to_install_svc_handler_1.png



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

[연관 글]






[최초 등록일: ]
[최종 수정일: 7/10/2021]

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

비밀번호

댓글 작성자
 



2009-03-07 04시23분
[사이] 예제대로 아무래 해봐도 웹사이트가 나오지 않아서 짜증이 났었는데, 역시 여기에 해답이 있군요 ^^ 감사합니다.~~
[guest]

... 181  182  183  184  [185]  186  187  188  189  190  191  192  193  194  195  ...
NoWriterDateCnt.TitleFile(s)
333정성태8/20/200624042개발 환경 구성: 11. COM+ 서버 활성화 보안 설정
331정성태8/27/200617002개발 환경 구성: 10. 최대 절전 모드와 VPC 네트워크 문제
330정성태8/20/200617269개발 환경 구성: 9. VPC로 구성하는 개인 환경
328정성태8/20/200635015개발 환경 구성: 8. AppVerifier 사용법 [1]
327정성태8/16/200631818개발 환경 구성: 7. ActiveX 서명 과정 자동화 [1]
326정성태8/16/200625559Team Foundation Server: 13. Sysnet 웹 사이트 TFS Migration
322정성태8/15/200620487개발 환경 구성: 6. 4GB 메모리 구성 [1]
316정성태9/20/200639552디버깅 기술: 6. .NET 예외 처리 정리 [6]
309정성태12/27/200640463디버깅 기술: 5. PDB 이야기 [7]
310정성태8/5/200627545    답변글 디버깅 기술: 5.1. PDB 파일에 따른 Debug 정보 - WinForm + Library 유형의 프로젝트파일 다운로드1
311정성태8/10/200627009    답변글 디버깅 기술: 5.2. PDB 파일에 따른 Debug 정보 - .NET 2.0 Web Application Project + Library 유형의 프로젝트
312정성태8/5/200629744    답변글 디버깅 기술: 5.3. PDB 파일에 따른 Debug 정보 - .NET 2.0 Web Site Model 유형의 프로젝트
313정성태8/12/200628862    답변글 디버깅 기술: 5.4. VS.NET 2005 디버그 모드에서의 PDB 파일 사용 차이 (1)
317정성태8/12/200626347    답변글 디버깅 기술: 5.5. VS.NET 2005 디버그 모드에서의 PDB 파일 사용 차이 (2)
318정성태8/12/200632770    답변글 디버깅 기술: 5.6. VS.NET 2005를 이용한 미니덤프 파일 분석 (1)
319정성태8/12/200627776    답변글 디버깅 기술: 5.7. VS.NET 2005를 이용한 미니덤프 파일 분석 (2) [1]
320정성태8/12/200631909    답변글 디버깅 기술: 5.8. WinDBG를 이용한 미니덤프 파일 분석 [1]
321정성태8/13/200636333    답변글 디버깅 기술: 5.9. Microsoft의 PDB 파일 관리
323정성태8/15/200637758    답변글 디버깅 기술: 5.10. Symbol Server 생성 [4]
324정성태8/15/200634593    답변글 디버깅 기술: 5.11. PDB 파일과 소스 코드
325정성태9/8/200627268    답변글 디버깅 기술: 5.12. CCP를 이용한 Windows Source Code 수준의 디버깅
329정성태8/19/200626283    답변글 디버깅 기술: 5.13. 소스 서버 구성 [1]
332정성태8/20/200627748    답변글 디버깅 기술: 5.14. GAC 에 등록된 Assembly 디버그 [2]
341정성태9/16/200620104    답변글 디버깅 기술: 5.15. [내용 예약]
342정성태9/16/200637660    답변글 디버깅 기술: 5.16. ASP.NET 디버깅 환경 구성 [1]파일 다운로드1
306정성태2/13/200717179기타: 15. .NET 이 생산성이 높다는 증거(!)
... 181  182  183  184  [185]  186  187  188  189  190  191  192  193  194  195  ...