【发布时间】:2011-10-06 15:41:39
【问题描述】:
我在尝试从 VS2010 中运行构建时收到此错误。
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 Publish 本身中成功地进行 Web 部署
【问题讨论】:
标签: visual-studio-2010 iis tfs iis-7.5