2013-05-14 118 views
0

我想网络部署到EC2实例使用的MSBuild无法网络部署到EC2实例

C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe 
/p:Configuration=Release;MsDeployServiceUrl=ec2-instance 

name.compute.amazonaws.com:8172/msdeploy.axd;MSDeployPublishMethod=RemoteAgent;username = “管理用户”,密码= “密码”; DeployIisAppPath =网站名称; CreatePackageOnPublish = TRUE; DeployOnBuild = TRUE; DeployTarget = WebPublish “my.Web.csproj”

我得到一个

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web 
.Publishing.targets(3847,5): error : Web deployment task failed.(Could not comp 
lete the request to remote agent URL ':8172/msdeploy.axd/MSDEPLOYAGENTSERVICE'.) This error indicates that you cannot connect 
to the server. Make sure the service URL is correct, firewall and network sett 
ings on this computer and on the server computer are configured properly, and t 
he appropriate services have been started on the server. 
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.P 
ublishing.targets(3847,5): error : Error details:\r 
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.P 
ublishing.targets(3847,5): error : Could not complete the request to remote age 
nt URL ':8172/msdeploy.a 
xd/MSDEPLOYAGENTSERVICE'. 

我在安全组 1.Open端口8172

2.Reinstalled网络在目标

3.Made一个管理员用户,并使用该

帮助将非常感激部署3。

回答

1

其使用的URL不正确。既然你要发布在网上,你正在使用的网络管理服务,因此URL应该采用以下格式一方:

出版作为管理员:

https://myserver.com:8172/msdeploy.axd 

如果要发布的所有者的服务器上的一个网站,并只是为了你自己的网站,然后权限:

https://myserver.com:8172/msdeploy.axd?site=<sitename> 
+0

感谢谢赫,但我读了它默认为https所以没必要,当我做补充that.And“https://开头MYSERVER .com:8172/msdeploy.axd“在je中出现为http:// https://myserver.com:8172/msdeploy.axd nkins – vkansal 2013-05-14 21:56:08

+0

它显示的事实是:/ MSDEPLOYAGENTSERVICE在错误中意味着它没有使用正确的协议。 Web部署发布到Web部署代理服务或WMSvc。决定要么是用户明确的,要么是没有指定的,根据传递的url进行一些假设。看来,这是解决使用Web部署代理服务,这将无法正常工作。使用site = 语法指定完整的URL – 2013-06-11 00:32:37