对于ASP.NET项目,MSBuild在E:\ Build中提供了一些文件,例如:
从Windows 7部署到Windows Server 2008 R2(IIS 7)
执行命令会出现以下错误消息:
命令
C:\Program Files\IIS\Microsoft Web Deploy V3>msdeploy.exe -verb:sync -source:contentPath='E:\Build' -dest:contentPath='ra/files-to-pub',ComputerName="https://<IP>:8172/msdeploy.axd?site=ra",UserName='DEV\Administrator',Password='MyPassword',AuthType='Basic' -enableRule:DoNotDeleteRule -whatif -allowUntrusted
错误消息:
Info: Using ID 'd1bbee7a-e940-4be1-b41d-1847b3e7022d' for connections to the remote server.
Error Code: ERROR_COULD_NOT_CONNECT_TO_REMOTESVC
More Information: Could not connect to the remote computer ("[IP ADDRESS]") 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: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC.
Error: The remote server returned an error: (550).
Error count: 1
鉴于链接建议:
两个服务都在目标服务器上运行:
现在可以做些什么来解决它?
答案 0 :(得分:18)
如果你已经检查了基本的东西,比如
并尝试了here
中提到的步骤它仍然无效,我可以建议您使用Web Management Service Failed Request Tracing
进行排查答案 1 :(得分:10)
这可能为时已晚,但其他人则检查此错误。验证站点名称。 IE,默认网站/ SiteDeploy(或任何你称之为的)
ķ