2011-05-31 90 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