use*_*052 4 iis tfs visual-studio-2010 iis-7.5 tfs2010
尝试从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部署
爱德华解决了问题的第一部分.
关于https://部分,msdeploy默认以安全的方式执行操作.要关闭它,您必须使用-allowUntrusted命令.
对于"轻"阅读:http: //weblogs.asp.net/scottgu/archive/2010/09/13/automating-deployment-with-microsoft-web-deploy.aspx
和
http://forums.iis.net/t/1158582.aspx
归档时间: |
|
查看次数: |
5568 次 |
最近记录: |