2014-03-05 37 views
7

部署对于ASP.NET项目的MSBuild发生了一些文件在E:\建立如:错误550经由MSdeploy.exe

  • 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 

错误消息:

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

我现在该如何解决呢?

回答

15

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

并已试过在步骤中提到here

它仍然没有工作那么我可以建议使用Web Management Service Failed Request Tracing

+1

通过以下命令解决...... 配置IIS [这里](http://www.iis.net/learn/publish/ using-web-deploy/configure-the-web-deployment-handler) .... AND ... 'C:\ Program Files \ IIS \ Microsoft Web Deploy V3> msdeploy.exe -verb:sync -source:package ='E:\ Test-MsDeploy \ Package \ TestProjectA.zip'-dest:auto,wmsvc ='https :// {} IP:8172/msdeploy.axd网站=默认%20Web%20Site '用户名= '******',密码= '******',includeAcls =' 假'-disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile =“E:\ Test-MsDeploy \ Package \ TestProjectA.SetParameters.xml”-allowUntrusted' –

+11

不正确的网站名称让我头疼。简单的修复。痛苦追踪。 –

+5

Yup错误550意味着您发布的站点名称在服务上不存在。在Web服务器上用完全相同的名称创建一个空的站点,然后重新发布。它将工作 –

6

这可能为时已晚,但对于其他人检查此错误。验证网站名称。 IE浏览器,默认Web站点/ SiteDeploy(或者无论你怎么称呼它)

ķ

+0

这是为我所用。不是'SERVER/site-name',只是'site-name' –