通过 wmsvc MSDeploy 到 IIS6
我正在尝试使用 msdeploy.exe 将网站部署到 IIS6 机器。我可以使用 Visual Studio 2010 将类似的网站发布到同一服务器,因此我知道 MS 部署代理服务正在运行并正确配置。但是,当我尝试运行命令时,例如:
msdeploy -verb:sync -source:contentPath=C:\source\ -dest:iisApp="beta",wmsvc=beta.alanta.com,username=Administrator,password=xxx
然后我收到此错误消息:
错误:无法完成对远程代理 URL 'https://beta.alanta.com:8172/msdeploy.axd?Site=beta'。 错误:无法连接到远程服务器 错误:无法建立连接,因为目标机器主动拒绝它 74.208.74.114:8172 错误计数:1。
好的,这是有道理的:这是一台 IIS6 计算机,它采用不同的 URL 语法。但是,如果我尝试此处推荐的语法,如下所示
msdeploy -verb:sync -source:contentPath=C:\source\ -dest:iisapp="beta",wmsvc=http://beta.alanta.com/MsDeployAgentService,username=Administrator,password=xxxx
:我收到此错误消息:
错误:无法完成对远程代理 URL 'https://http//beta.alanta.com/MsDeployAgentService: 8172/msdeploy.axd?Site=beta'。 错误:无法解析远程名称:“http” 错误计数:1。
换句话说,msdeploy 命令想要坚持在我输入的任何 URL 前面添加 SSL 前缀 - 但此框中未配置 SSL。我在过去的两个小时里一直在谷歌搜索,但无法找出正确的语法。有什么建议吗?
I'm trying to deploy a website to an IIS6 box using msdeploy.exe. I can publish similar websites to the same server using Visual Studio 2010, so I know that the MS Deployment Agent Service is running and configured correctly. But when I try to run a command, like say:
msdeploy -verb:sync -source:contentPath=C:\source\ -dest:iisApp="beta",wmsvc=beta.alanta.com,username=Administrator,password=xxx
Then I get this error message:
Error: Could not complete the request to remote agent URL 'https://beta.alanta.com:8172/msdeploy.axd?Site=beta'.
Error: Unable to connect to the remote server
Error: No connection could be made because the target machine actively refused it 74.208.74.114:8172
Error count: 1.
OK, that makes sense: this is an IIS6 machine, and it takes a different URL syntax. But if I try the syntax that's recommended here, like so:
msdeploy -verb:sync -source:contentPath=C:\source\ -dest:iisapp="beta",wmsvc=http://beta.alanta.com/MsDeployAgentService,username=Administrator,password=xxxx
Then I get this error message:
Error: Could not complete the request to remote agent URL 'https://http//beta.alanta.com/MsDeployAgentService:8172/msdeploy.axd?Site=beta'.
Error: The remote name could not be resolved: 'http'
Error count: 1.
In other words, the msdeploy command wants to insist on throwing an SSL prefix in front of any URL that I put in there - but SSL isn't configured on this box. I've been googling for the last two hours, and can't figure out the right syntax. Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在使用此博客上找到的 msbuild 命令时遇到了同样的问题:
http://www.troyhunt.com/2010/11 /you-deploying-it-wrong-teamcity_24.html。
最后,我发现将发布方法更改为 MsDepSVC 可以解决此问题并且可以正常工作。
这是我的 msbuild 属性:
/P:配置=%env.Configuration%
/P:DeployOnBuild=True
/P:DeployTarget=MSDeployPublish
/P:MsDeployServiceUrl=https://%env.TargetServer%/MSDeployAgentService
/P:AllowUntrustedCertificate=True
/P:MSDeployPublishMethod=MsDepSVC
/P:CreatePackageOnPublish=True
/P:用户名=anAdminDeployBot
/P:密码=aGre4tP4ssw0r6
I had the same problem using msbuild command found on this blog:
http://www.troyhunt.com/2010/11/you-deploying-it-wrong-teamcity_24.html.
Finally, I found that changing the Publish Method to MsDepSVC solve this issue and worked properly.
here are my msbuild properties:
/P:Configuration=%env.Configuration%
/P:DeployOnBuild=True
/P:DeployTarget=MSDeployPublish
/P:MsDeployServiceUrl=https://%env.TargetServer%/MSDeployAgentService
/P:AllowUntrustedCertificate=True
/P:MSDeployPublishMethod=MsDepSVC
/P:CreatePackageOnPublish=True
/P:UserName=anAdminDeployBot
/P:Password=aGre4tP4ssw0r6