gpt4 book ai didi

visual-studio-2010 - VS2010 TFS Build Failure-无法完成对远程代理的请求

转载 作者:行者123 更新时间:2023-12-04 22:50:17 25 4
gpt4 key购买 nike

尝试从 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//...”
代码被 checkin 到远程 TFS 服务器。我从 VS 团队资源管理器中创建了一个构建定义,这是我在尝试构建/发布项目时遇到的错误。上面的 [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 部署

最佳答案

爱德华解决了你问题的第一部分。

关于 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

关于visual-studio-2010 - VS2010 TFS Build Failure-无法完成对远程代理的请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7676840/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com