VS2010 TFS Build Failure-Could not complete the request to remote agent

懵懂的女人 提交于 2019-12-05 12:48:09

Edward solved the first part of your problem.

Regarding the https:// part, msdeploy defaults to doing things in a secure manner. To turn this off you have to use the -allowUntrusted command.

for "light" reading: http://weblogs.asp.net/scottgu/archive/2010/09/13/automating-deployment-with-microsoft-web-deploy.aspx

and

http://forums.iis.net/t/1158582.aspx

I'm pretty sure that you either need to specify just a hostname to the MSDeployServerUrl option, or a full URL to msdeploy. That is, either:

/p:MSDeployServiceUrl=http://[servername]:8172/msdeploy.axd

or:

/p:MSDeployServiceUrl=[servername]

The latter will be translated to https://[servername]:8172/msdeploy.axd.

It's been a while since the question being opened, but I came across same problem and it wasn't fully resolved with answers above...

What I needed to change was removing protocol from MSDeployServiceUrl

/p:MSDeployServiceUrl=[servername]

AND changing MSDeployPublishMethod to RemoteAgent

/p:MSDeployPublishMethod=RemoteAgent

Hope this will be useful for others.

Deep

I created a Publish Profile using web deploy and saved in TFS and then in my build definition in MSBuild Arguments I added this:

/p:DeployOnBuild=True;PublishProfile=Web_Dev_WebDeployProfile  /p:AllowUntrustedCertificate=True /p:username=myusername /p:Password=mypassword

It worked for me. I also make sure that my build has permission to the published folder (virtual directory)

I also make sure that Web Management Service and Web Deployment Agent Service are running on my web server.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!