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

1  2  3  4  5  6  7  [8]  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
13434정성태11/1/20232703스크립트: 62. 파이썬 - class의 정적 함수를 동적으로 교체
13433정성태11/1/20232407스크립트: 61. 파이썬 - 함수 오버로딩 미지원
13432정성태10/31/20232505오류 유형: 878. 탐색기의 WSL 디렉터리 접근 시 "Attempt to access invalid address." 오류 발생
13431정성태10/31/20232844스크립트: 60. 파이썬 - 비동기 FastAPI 앱을 gunicorn으로 호스팅
13430정성태10/30/20232710닷넷: 2153. C# - 사용자가 빌드한 ICU dll 파일을 사용하는 방법
13429정성태10/27/20233001닷넷: 2152. Win32 Interop - C/C++ DLL로부터 이중 포인터 버퍼를 C#으로 받는 예제파일 다운로드1
13428정성태10/25/20233075닷넷: 2151. C# 12 - ref readonly 매개변수
13427정성태10/18/20233265닷넷: 2150. C# 12 - 정적 문맥에서 인스턴스 멤버에 대한 nameof 접근 허용(Allow nameof to always access instance members from static context)
13426정성태10/13/20233425스크립트: 59. 파이썬 - 비동기 호출 함수(run_until_complete, run_in_executor, create_task, run_in_threadpool)
13425정성태10/11/20233214닷넷: 2149. C# - PLinq의 Partitioner<T>를 이용한 사용자 정의 분할파일 다운로드1
13423정성태10/6/20233190스크립트: 58. 파이썬 - async/await 기본 사용법
13422정성태10/5/20233338닷넷: 2148. C# - async 유무에 따른 awaitable 메서드의 병렬 및 예외 처리
13421정성태10/4/20233413닷넷: 2147. C# - 비동기 메서드의 async 예약어 유무에 따른 차이
13420정성태9/26/20235622스크립트: 57. 파이썬 - UnboundLocalError: cannot access local variable '...' where it is not associated with a value
13419정성태9/25/20233241스크립트: 56. 파이썬 - RuntimeError: dictionary changed size during iteration
13418정성태9/25/20233938닷넷: 2146. C# - ConcurrentDictionary 자료 구조의 동기화 방식
13417정성태9/19/20233475닷넷: 2145. C# - 제네릭의 형식 매개변수에 속한 (매개변수를 가진) 생성자를 호출하는 방법
13416정성태9/19/20233280오류 유형: 877. redis-py - MISCONF Redis is configured to save RDB snapshots, ...
13415정성태9/18/20233778닷넷: 2144. C# 12 - 컬렉션 식(Collection Expressions)
13414정성태9/16/20233534디버깅 기술: 193. Windbg - ThreadStatic 필드 값을 조사하는 방법
13413정성태9/14/20233730닷넷: 2143. C# - 시스템 Time Zone 변경 시 이벤트 알림을 받는 방법
13412정성태9/14/20237025닷넷: 2142. C# 12 - 인라인 배열(Inline Arrays) [1]
13411정성태9/12/20233521Windows: 252. 권한 상승 전/후 따로 관리되는 공유 네트워크 드라이브 정보
13410정성태9/11/20235061닷넷: 2141. C# 12 - Interceptor (컴파일 시에 메서드 호출 재작성) [1]
13409정성태9/8/20233902닷넷: 2140. C# - Win32 API를 이용한 모니터 전원 끄기
13408정성태9/5/20233866Windows: 251. 임의로 만든 EXE 파일을 포함한 ZIP 파일의 압축을 해제할 때 Windows Defender에 의해 삭제되는 경우
1  2  3  4  5  6  7  [8]  9  10  11  12  13  14  15  ...