2011-05-31 92 views
2

我一直在努力嘗試使用Visual Studio 2010中的Web部署選項發佈到安裝了Windows Server 2003的IIS 6服務器。我已經安裝了服務器上的Web部署代理,啓動了服務,並隨後創立在這個環節在IIS中使用web部署的問題6

http://www.troyhunt.com/2010/11/you-deploying-it-wrong-teamcity_24.html

但每次我得到同樣的錯誤

Error 33 Web deployment task failed.(Could not connect to the destination computer ("iportal.g-beehive.com") using the specified process ("Web Deployment Agent Service") because the server did not respond. Make sure that the process ("Web Deployment Agent Service") is started on the destination computer.)

Could not connect to the destination computer ("iportal.g-beehive.com") using the specified process ("Web Deployment Agent Service") because the server did not respond. Make sure that the process ("Web Deployment Agent Service") is started on the destination computer. The remote server returned an error: (400) Bad Request. 0 0 GuciPortalWebProject

正如你看到的,我得到的所有指令(400)錯誤的請求錯誤.....我沒有找到任何解決方案,這似乎每個人都在使用IIS 7,但我只能使用Windows Server 2003的IIS 6 ....任何幫助將不勝感激。 ...

+0

服務網址:http://iportal.g-beehive.com – 2011-05-31 14:04:29

+0

網站/應用:默認Web站點 用戶名:用戶名 密碼:password – 2011-05-31 14:05:15

+0

我找不到端口號在哪裏可以找到它 – 2011-05-31 14:09:18

回答

1

要知道什麼問題是你可以去目的地服務器(iportal ...)和RU吶診斷測試:

  1. 打開命令提示符窗口,然後運行:netsh http show urlacl 這將顯示您全部保留,你將有類似:

    Reserved URL : http://+:80/MSDEPLOYAGENTSERVICE/ User: NT AUTHORITY\NETWORK SERVICE Listen: Yes Delegate: No SDDL: D:(A;;GX;;;NS)

  2. 確保該端口是開放的防火牆。

  3. 導航到<systemdrive>\program files\iis\microsoft web deploy(它可能是「微軟網絡部署V2」如果這是你安裝了什麼)
  4. 執行以下命令: msdeploy -verb:dump -source:dirpath=c:\temp,computername=http://machinename:<portnumberfromabove>/msdeployagentservice,username=<username>,password=<password> -verbose -debug

如果仍然失敗,這應該給你一個有關爲什麼無法連接的詳細輸出。

+0

我試着你的建議,但它什麼都沒做。我也嘗試使用Chrome瀏覽器訪問http:// myhost:80/MSDEPLOYAGENTSERVICE /,這也是一種工作。它要求成爲我的憑證,然後是空白頁。 VS不斷給我錯誤「遠程服務器返回錯誤:(400)錯誤的請求。」 – darkzangel 2013-07-03 04:11:41