对于ASP.NET项目,MSBuild在E:\ Build中提供了一些文件,例如:
TestProjectA.deploy.cmd
TestProjectA.SetParameters.xml
TestProjectA.SourceManifest.xml
TestProjectA.zip
从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://: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
鉴于链接建议:
Ping远程计算机.*STATUS-OK
msdepsvc或wmsvc服务在远程服务器上启动.*STATUS-OK
防火墙不会阻止目标上端口的传入连接.如果它使用默认安装,则msdepsvc为80,wmsvc为8172.*STATUS-OK
这两个服务都在目标服务器上运行:
网站管理服务
Web部署代理服务
现在可以做些什么来解决它?
如果你已经检查了基本的东西,比如
凭证是正确的
网站名称拼写正确无处不在
并尝试了这里提到的步骤
它仍然无法正常工作,我可以建议使用Web管理服务失败的请求跟踪进行故障排除
这可能为时已晚,但其他人则检查此错误.验证站点名称.IE,默认网站/ SiteDeploy(或者你称之为的任何东西)
ķ