尝试从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中创建了一个Build Definition,这是我在尝试构建/发布项目时遇到的错误.上面的[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]"
Run Code Online (Sandbox Code Playgroud)
有人遇到同样的错误吗?
顺便说一下,我能够在VS Publish中做一个成功的Web部署