2014-03-05 42 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' –