我尝试从VS2010内部运行构建时收到此错误。VS2010 TFS构建失败 - 无法完成对远程代理的请求
C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets (3588): Web deployment task failed.(Could not complete the request to remote agent URL 'https://http//[serverName]:8172/msdeploy.axd?site=Default Web Site'.) Could not complete the request to remote agent URL 'https://http//[serverName]:8172/msdeploy.axd?site=Default Web Site'. The remote name could not be resolved: 'http'
我不知道为什么它说:“https://开头的http // ......”
代码签入到远程服务器TFS。我在VS Team Explorer中创建了一个构建定义,这是我在尝试构建/发布项目时遇到的错误。上面的[servername]是我的项目发布到的IIS服务器。
这些都是MSBuild的参数:
/p:DeployOnBuild=True
/p:DeployTarget=MsDeployPublish
/p:CreatePackageOnPublish=False
/p:MSDeployPublishMethod=WMSVC
/p:MSDeployServiceUrl=http://[serverName]
/p:DeployIisAppPath="Default Web Site/[site/app Name]"
任何人都遇到了同样的错误?
顺便说一句,我能够从做一个成功的网络部署中的VS发布本身
1.有没有办法将allowUntrusted命令添加到TFS构建定义中? 2.它似乎在http:// [serverName]中工作(仅在VS发布GUI中),但不与([serverName]和Allow Untrusted)一起工作。我不知道是否它的本地机器或IIS服务器没有配置正确的B/C它似乎不喜欢使用https – user897052
好吧,所以我加了/ p:AllowUntrustedCertificate(这相当于前面提到的-allowUntrusted arg命令提示符 - 感谢Chris),TFS Build def。配置以及/ p:用户名和/ p:密码,到目前为止这么好...成功的构建/发布......谢谢你们 – user897052