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

... 196  197  [198]  199 
NoWriterDateCnt.TitleFile(s)
184정성태11/23/200521930    답변글 VC++: 9.1. FTP 관련 토픽파일 다운로드1
51정성태6/24/200427038VC++: 8. BSTR 메모리 할당 및 해제(MSDN Library 발췌) [1]
50정성태6/16/200420218기타: 6. 1차 데스크톱 컴퓨터 사양
49정성태6/16/200420534기타: 5. 53만 원대 Second PC 마련. ^^
48정성태3/2/200422513.NET Framework: 9. 윈도우즈 발전사를 모아 둔 사이트. [1]
47정성태11/14/200520771VS.NET IDE: 7. 한글 OS에서 Internet Explorer 6.0 with SP1의 UI 언어 바꾸는 방법
45정성태1/26/200420229기타: 4. MCAD 시험
44정성태1/26/200421011VS.NET IDE: 6. 터미널 서비스 포트 변경 ( 서버 및 클라이언트 )
46정성태1/26/200426092    답변글 VS.NET IDE: 6.1. Windows 2003 터미널 서비스 라이센스 서버 없이 접속
114정성태11/14/200517400    답변글 VS.NET IDE: 6.2. [터미널 서버 라이센스] : 활성화 시 오류
43정성태12/23/200320830기타: 3. XP/2003 개인 방화벽 설정파일 다운로드1
40정성태7/23/200324531COM 개체 관련: 10. IE BHO 개체를 개발할 때, 인터넷 익스플로러가 아닌 탐색기에서 활성화 되는 문제 해결 [1]
41김성현7/24/200323173    답변글 COM 개체 관련: 10.1. [답변]: IE BHO 개체를 개발할 때, 인터넷 익스플로러가 아닌 탐색기에서 활성화 되는 문제 해결
42정성태7/29/200320911        답변글 COM 개체 관련: 10.2. feedback 을 받기 위해서 답변 기능을 가능하게 해두었습니다.
39정성태7/17/200326914VS.NET IDE: 5. 원격 제어 3가지 방법
38정성태7/17/200323169.NET Framework: 8. IIS 서버 재설치와 ASP.NET 서비스의 문제점
36정성태7/17/200324083.NET Framework: 7. 시행착오 - WebService 참조 추가 오류
35정성태7/17/200324603.NET Framework: 6. Win2000에서의 .NET COM+ 자동 등록 오류 발생 해결
34정성태7/17/200323145VS.NET IDE: 4. VC++ 원격 디버깅파일 다운로드1
33정성태7/17/200323472VS.NET IDE: 3. Win2000 NAT 서비스
32정성태7/17/200324602COM 개체 관련: 9. _bstr_t, CComBSTR, string 클래스 사용 [1]
31정성태7/17/200321531COM 개체 관련: 8. IDL 구문에서 구조체를 pack 하는 방법
30정성태7/17/200339120VC++: 7. [STL] vector 사용법 및 reference 사용예 [1]파일 다운로드1
28정성태7/17/200323331스크립트: 3. Programming Microsoft Internet Explorer 5 - CHM 파일
29정성태7/17/200322785    답변글 스크립트: 3.1. Programming Microsoft Internet Explorer 5 - 소스코드
27정성태7/17/200321502COM 개체 관련: 7. HTML Control에서 DELETE, 화살표 키 등이 안 먹는 문제
... 196  197  [198]  199