部署對於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部署代理服務
我現在該如何解決呢?
通過以下命令解決...... 配置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' –
不正確的網站名稱讓我頭疼。簡單的修復。痛苦追蹤。 –
Yup錯誤550意味着您發佈的站點名稱在服務上不存在。在Web服務器上用完全相同的名稱創建一個空的站點,然後重新發布。它將工作 –