성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Java - How to use the Foreign Funct...
[정성태] 제가 큰 실수를 했군요. ^^; Delegate를 통한 Bein...
[정성태] Working with Rust Libraries from C#...
[정성태] Detecting blocking calls using asyn...
[정성태] 아쉽게도, 커뮤니티는 아니고 개인 블로그입니다. ^^
[정성태] 질문이 잘 이해가 안 됩니다. 우선, 해당 소스코드에서 ILis...
[양승조
] var대신 dinamic으로 선언해서 해결은 했습니다. 맞는 해...
[양승조
] 또 막혔습니다. ㅠㅠ var list = props[i].Ge...
[양승조
] 아. 감사합니다. 어제는 안됐던것 같은데....정신을 차려야겠네...
[정성태] "props[i].GetValue(props[i])" 코드에서 ...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
제니퍼 .NET
닷넷
COM 개체 관련
스크립트
VC++
VS.NET IDE
Windows
Team Foundation Server
디버깅 기술
오류 유형
개발 환경 구성
웹
기타
Linux
Java
DDK
Math
Phone
Graphics
사물인터넷
부모글 보이기/감추기
내용
<div style='display: inline'> <h1 style='font-family: Malgun Gothic, Consolas; font-size: 20pt; color: #006699; text-align: center; font-weight: bold'>Web Deploy (msdeploy.axd) 실행 시 오류 기록</h1> <p> 우선, IIS 웹 서버 측에 아무것도 설치되어 있지 않은 경우 비주얼 스튜디오에서 배포하면 다음과 같은 오류가 발생합니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > Web deployment task failed. (Could not connect to the remote computer ("192.168.100.5"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE.) This error indicates that you cannot connect to the server. Make sure the service URL is correct, firewall and network settings on this computer and on the server computer are configured properly, and the appropriate services have been started on the server. Error details: Could not connect to the remote computer ("192.168.100.5"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE. Unable to connect to the remote server No connection could be made because the target machine actively refused it 192.168.100.5:8172 </pre> <br /> 당연히 해당 IIS 서버 측에 "Management Service" 구성 요소를 설치하고,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > [Add Roles and Features] Web Server (IIS) - Management Tools - Management Service </pre> <br /> Web Deployment Tool 도구를 설치해야 합니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > Configure the Web Deployment Handler ; <a target='tab' href='https://learn.microsoft.com/en-us/iis/publish/using-web-deploy/configure-the-web-deployment-handler'>https://learn.microsoft.com/en-us/iis/publish/using-web-deploy/configure-the-web-deployment-handler</a> Installing the Web Deployment Tool. ; <a target='tab' href='https://learn.microsoft.com/en-us/iis/publish/using-web-deploy/use-the-web-deployment-tool'>https://learn.microsoft.com/en-us/iis/publish/using-web-deploy/use-the-web-deployment-tool</a> Web Deployment Tool ; <a target='tab' href='https://www.iis.net/downloads/microsoft/web-deploy'>https://www.iis.net/downloads/microsoft/web-deploy</a> ; <a target='tab' href='https://www.microsoft.com/en-us/download/details.aspx?id=43717'>https://www.microsoft.com/en-us/download/details.aspx?id=43717</a> </pre> <br /> 이후 서비스 관리자에서 2개의 서비스가 "Running" 상태인지를 확인합니다.<br /> <br /> <ul> <li>WMSvc - Web Management Service</li> <li>MsDepSvc - Web Deployment Agent Service</li> </ul> <br /> <hr style='width: 50%' /><br /> <br /> 그래도 다음과 같은 오류가 발생할 수 있습니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > Web deployment task failed. (Connected to the remote computer ("192.168.100.5") using the specified process ("Web Management Service"), but could not verify the server’s certificate. If you trust the server, connect again and allow untrusted certificates. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CERTIFICATE_VALIDATION_FAILED.) Connected to the remote computer ("192.168.100.5") using the specified process ("Web Management Service"), but could not verify the server’s certificate. If you trust the server, connect again and allow untrusted certificates. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CERTIFICATE_VALIDATION_FAILED. The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. The remote certificate is invalid according to the validation procedure. </pre> <br /> 이런 경우엔 차라리 비주얼 스튜디오 측의 배포 대화창에서 "Edit"로 들어가,<br /> <br /> <img onclick='toggle_img(this)' class='imgView' alt='iis_dep_error_1.png' src='/SysWebRes/bbs/iis_dep_error_1.png' /><br /> <br /> <a target='tab' href='https://www.sysnet.pe.kr/2/0/11491#cert_check'>UI 상에서 "Validate Connection" 버튼을 눌러 뜨는 오류 창에서 "Save this certificate for future sessions of Visual Studio" 옵션을 체크한 후 "Accept"를 선택하면 인증서를 신뢰</a>합니다.<br /> <br /> <hr style='width: 50%' /><br /> <br /> 또는, 403 Forbidden 오류가 발생할 수도 있습니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > Web deployment task failed. (Could not connect to the remote computer ("192.168.100.5") using the specified process ("Web Management Service") because the server did not respond. Make sure that the process ("Web Management Service") is started on the remote computer. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC.) Could not connect to the remote computer ("192.168.100.5") using the specified process ("Web Management Service") because the server did not respond. Make sure that the process ("Web Management Service") is started on the remote computer. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC. The remote server returned an error: (403) Forbidden. </pre> <br /> 이럴 때는, 서비스 관리자에서 "WMSVC(Web Management Service)"를 중지 시킨 후, IIS 관리자에서 (컴퓨터 이름이 출력되는) 서버 노드의 "Management Service"로 들어가 "Enable remote connections"를 활성화하고,<br /> <br /> <img onclick='toggle_img(this)' class='imgView' alt='iis_dep_error_2.png' src='/SysWebRes/bbs/iis_dep_error_2.png' /><br /> <br /> 다시 WMSVC를 시작하면 됩니다.<br /> <br /> <hr style='width: 50%' /><br /> <br /> 그래도 404 Not Found 오류가 발생한다면?<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > Web deployment task failed. (Could not connect to the remote computer ("192.168.100.5"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE.) The requested resource does not exist, or the requested URL is incorrect. Could not connect to the remote computer ("192.168.100.5"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE. The remote server returned an error: (404) Not Found. </pre> <br /> WMSVC의 로그가 남는 디렉터리에(기본값으로 %SystemDrive%\Inetpub\logs\WMSvc) 가보면 보다 구체적인 substatus 코드를 알 수 있습니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > #Software: Microsoft Internet Information Services 10.0 #Version: 1.0 #Date: 2020-09-29 05:47:43 #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken 2020-09-29 05:47:43 192.168.100.5 HEAD /msdeploy.axd site=Blazor2 8172 - 192.168.0.19 - - 404 7 0 1062 2020-09-29 05:47:44 192.168.100.5 HEAD /msdeploy.axd site=Blazor2 8172 - 192.168.0.19 - - 404 7 0 0 2020-09-29 05:47:44 192.168.100.5 HEAD /msdeploy.axd site=Blazor2 8172 - 192.168.0.19 - - 404 7 0 15 </pre> <br /> 위에서는 "404.7"로 "File Extension Denied"를 의미하는데요, 시스템에 "AXD-ISAPI-4.0_32bit" / "AXD-ISAPI-4.0_64bit"라는 이름의 핸들러(*.axd) 매핑이 없기 때문입니다.<br /> <br /> 직접 구성해도 되지만, 그냥 이런 경우에는 "Web Deploy" 도구를 제거하고 다시 설치할 때 다음과 같이 "IIS Deployment Handler"와 "Remote Agent Service"를 명시적으로 체크해 진행하면 됩니다.<br /> <br /> <img alt='iis_dep_error_3.png' src='/SysWebRes/bbs/iis_dep_error_3.png' /><br /> </p><br /> <br /><hr /><span style='color: Maroon'>[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]</span> </div>
첨부파일
스팸 방지용 인증 번호
2034
(왼쪽의 숫자를 입력해야 합니다.)