Microsoft MVP성태의 닷넷 이야기
.NET Framework: 124. IIS 7에서 SVC 호스팅 [링크 복사], [링크+제목 복사],
조회: 34391
글쓴 사람
정성태 (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]

... 166  167  168  169  170  171  172  173  174  [175]  176  177  178  179  180  ...
NoWriterDateCnt.TitleFile(s)
725정성태5/21/200929433VS.NET IDE: 61. Visual Studio 2010 베타1과 Visual Studio 2008의 혼합 개발 [2]
724정성태5/19/200945118.NET Framework: 136. 자바와 닷넷의 압축 호환파일 다운로드2
723정성태5/18/200937810.NET Framework: 135. C# - Deflate, GZip, Zip
722정성태5/18/200925794개발 환경 구성: 45. SQL 서버 2008 백업 구성 [2]
721정성태5/14/200931691오류 유형: 81. Package 실행 오류 - Error 15404
720정성태5/13/200928556오류 유형: 80. SQL Server 2008 - Package 실행 오류의 구체적인 원인 확인
719정성태5/12/200929559.NET Framework: 134. WPF - XBAP을 호스팅하고 있는 인터넷 익스플로러 인터페이스 구하기파일 다운로드1
717정성태5/11/200929927개발 환경 구성: 44. VHD 파일 크기 확장하는 방법 - 두 번째 이야기
714정성태5/7/200928442Windows: 45. Windows 7 RC와 함께 공개된 Windows Virtual PC 베타
713정성태4/30/200960186오류 유형: 79. DLL 'xxxxx.dll'을(를) 로드할 수 없습니다. [1]
712정성태4/28/200932881오류 유형: 78. Windows Vista/2008에서의 MSXML4.cab 파일 배포 문제
711정성태4/27/200932823개발 환경 구성: 43. Hyper-V VHD 파일 크기 확장하는 방법
710정성태4/26/200933543.NET Framework: 133. CallbackOnCollectedDelegate was detected [4]파일 다운로드1
709정성태4/24/200929382개발 환경 구성: 42. Windows Vista SP1에서 사용 가능한 Hyper-V 관리 도구
708정성태4/23/200934322.NET Framework: 132. ClickOnce 배포를 명령행 수작업 구성파일 다운로드1
707정성태4/22/200933654개발 환경 구성: 41. Hyper-V에 Linux 설치 - SUSE Linux Enterprise Server 11
706정성태4/21/200929418.NET Framework: 131. ClickOnce - 그룹화시켜 다운로드파일 다운로드1
705정성태4/20/200925018개발 환경 구성: 40. TFS2008 SP1의 DBTier에 SQL Server 2008 SP1 설치 [1]
704정성태4/19/200925065개발 환경 구성: 39. Together 2007 SP1 설치
702정성태4/18/200936681.NET Framework: 130. Infragistics - Tabbed MDI WPF 응용 프로그램파일 다운로드1
701정성태4/17/200931594Windows: 44. bootsect 오류 - Access is denied.
700정성태4/17/200934700.NET Framework: 129. Infragistics WPF 컨트롤 사용 [1]
699정성태4/16/200932348.NET Framework: 128. 이벤트 멤버의 명시적 구현파일 다운로드1
696정성태4/12/200931985오류 유형: 77. RDP 연결이 되지 않는 경우. [1]
693정성태4/9/200926430오류 유형: 76. "Client found response content type of '', but expected 'text/xml'. The request failed with an empty response.No Reports".
692정성태4/8/200939671.NET Framework: 127. ClickOnce로 ActiveX를 같이 배포하는 방법 [2]파일 다운로드1
... 166  167  168  169  170  171  172  173  174  [175]  176  177  178  179  180  ...