2011-05-17 47 views
7

我們正在努力實現自動化部署,並且我真的很樂意使用MSdeploy來幫助我們實現目標。不幸的是,我一直沒有把MS部署到VS2010上運行,我即將放棄。MSDeploy一鍵發佈不能從VS2010工作

我們贏2008服務器是在數據中心和我有防火牆和MS按照正確部署遠程服務和IIS管理服務設置: http://learn.iis.net/page.aspx/516/configure-the-web-deployment-handler/

我已經安裝了IIS管理器用戶和檢查一切,我可以想想。如果我使用IIS遠程管理,我甚至可以從我們的開發環境進行連接。然而,當我從VS 2010發佈時,我得到:

Error 1 Web deployment task failed.(Could not connect to the destination computer ("x.x.x.x"). On the destination computer, make sure that Web Deploy is installed and that the required process ("The Web Management Service") is started.) 
The requested resource does not exist, or the requested URL is incorrect. 
Error details: 
Could not connect to the destination computer ("x.x.x.x"). On the destination computer, make sure that Web Deploy is installed and that the required process ("The Web Management Service") is started. 
The remote server returned an error: (404) Not Found.  0 0 UI 

我錯過了什麼?請幫忙?

回答

4

當您未使用msdeploy服務的正確URL時,彈出錯誤消息。它應該是這個樣子:

http://x.x.x.x:80/MsDeployAgentService

的:/ MsDeployAgentService是msdeploy使用默認路徑。

其他可以嘗試的操作: 1.關閉防火牆並查看它是否有效。 2.驗證「web部署服務」正在目標服務器的windows服務管理器中運行。

+1

嗨,謝謝你。事實證明,我正在使用的IIS管理器用戶沒有對物理文件夾的權限。一旦我確定它開始工作。我希望它能給出更好的錯誤信息! – taazaa 2011-05-19 02:41:36

+0

+1 web部署技巧很好 - 它被設置爲服務器上的'手動'啓動我給了 – amelvin 2013-01-17 17:17:52

+0

以下是另一個用於跟蹤Web部署失敗的好資源:http://www.iis.net/learn/publish/故障排除,網絡部署/故障排除,網絡部署 - 問題 - 與視覺工作室 – 2014-03-14 20:15:26