Web Deploy results in ERROR_COULD_NOT_CONNECT_TO_REMOTESVC

后端 未结 8 399
长情又很酷
长情又很酷 2020-12-24 06:20

We are trying to configure continuous integration with TFS 2012. While queuing a new build, the publish fails with the error:

Build FAILED. \

相关标签:
8条回答
  • 2020-12-24 06:37

    You should check the logs on your IIS first - see that you actually get to the server, and then you can locate the exact error here - https://support.microsoft.com/en-us/help/943891/the-http-status-code-in-iis-7-0-iis-7-5-and-iis-8-0

    Uninstalling and re-installing (not repairing!) after setting up IIS did most of the magic for me.

    0 讨论(0)
  • 2020-12-24 06:40

    In my case the Internet proxy was enabled on source - which made msdeploy to reach out to internet instead of local ICN.

    0 讨论(0)
  • 2020-12-24 06:48

    Fix that i saw on another website:

    Fix it by adding “http://” to server.

    In other words, when server is www.xxxx.com would get the 403 error, but when server is http://www.xxxx.com, then it works.

    0 讨论(0)
  • 2020-12-24 06:48

    I got this error when using msdeploy, not TFS. In my case I needed to make sure the user msdeploy is using had permission to deploy to the website.

    Find the website in IIS manager, right click and go to Deploy, then Configure Web Deploy Publishing. Find the user used by Web Deploy and setup for this website.

    0 讨论(0)
  • 2020-12-24 06:54

    Double check in your Web Deploy settings that the name of the website is exactly that of what's in IIS.

    enter image description here

    enter image description here

    Ben Day blogged more about it.

    0 讨论(0)
  • 2020-12-24 06:54

    There is another possible cause of the error. IIS Managemente Service have its own configuration for IP Address Restrictions, which default value is Deny Access for unspecified clients (Windows Server 2012 R2 with IIS 8.5).

    You must set this value to Allow or add access to your specific IP address/IP address range using the Allow... button.

    Remember, you must Stop the Management Service previously to change this configuration.

    0 讨论(0)
提交回复
热议问题