通过MSdeploy.exe部署发生错误550

Kha*_*han 11 asp.net iis-7 msdeploy windows-server-2008

对于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://<IP>:8172/msdeploy.axd?site=ra",UserName='DEV\Administrator',Password='MyPassword',AuthType='Basic' -enableRule:DoNotDeleteRule -whatif -allowUntrusted
Run Code Online (Sandbox Code Playgroud)

错误信息:

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部署代理服务

现在可以做些什么来解决它?

Cod*_*nda 19

如果你已经检查了基本的东西,比如

并尝试了这里提到的步骤

它仍然无法正常工作,我可以建议使用Web管理服务失败的请求跟踪进行故障排除

  • 不正确的网站名称咬我.简单的修复.追踪的痛苦. (14认同)
  • Yup Error 550表示您要发布到的站点名称在服务上不存在.在Web服务器上使用完全相同的名称创建一个空站点,然后再次发布.它会工作 (5认同)

小智 11

这可能为时已晚,但其他人则检查此错误.验证站点名称.IE,默认网站/ SiteDeploy(或者你称之为的任何东西)

ķ