SetParameters来自: “E:\ Builds \ 3 \ XXX \ XX Integration \ Binaries_PublishedWebsites \ XXX_Package \ XXX.SetParameters.xml” 您可以更改IIS应用程序名称,物理路径,connectionString
“C:\ Program Files \ IIS \ Microsoft Web Deploy \ msdeploy.exe”-source:package ='E:\ Builds \ 3 \ XXX \ XX Integration \ Binaries_PublishedWebsites \ XXX_Package \ XXX.zip' -dest:auto ,computerName ='server-name',includeAcls ='False'-verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:“E:\ Builds \ 3 \ XXX \ XX Integration \ Binaries_PublishedWebsites \ XXX_Package \ XXX.SetParameters.xml“
错误:无法联系远程代理(URL http://server-name/MSDEPLOYAGENTSERVICE)。确保在目标计算机上安装并启动了远程代理服务。 错误:收到了不支持的响应。响应头'MSDeploy.Response'是''但是'v1'是预期的。 错误:远程服务器返回错误:(401)未经授权。 错误计数:1。
答案 0 :(得分:0)
您需要为运行构建代理的帐户授予目标服务器权限!
http://www.iis.net/learn/publish/using-web-deploy/configure-the-web-deployment-handler