使用 Webdeploy 部署时出现连接错误

Getting connection error while deploying using Webdeploy

部署时出错:

Verbose: Pre-authenticating to remote agent URL 'https://server:8172/MsDeploy.axd' as 'someuser'.
Error: Could not complete the request to remote agent URL 'https://server:8172/MsDeploy.axd'.
Error: The underlying connection was closed: An unexpected error occurred on a send.
Error: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
Error: An existing connection was forcibly closed by the remote host
Error count: 1.

我可以在 8172 端口上远程登录,已经安装了 Web management/web 部署服务,它们是 运行。如果我提供不正确的信用,即使它没有给出身份验证错误,所以假设它在身份验证之前失败。 目标服务器是 2016 Datacenter

在目标服务器上启用 TLS 1.0 和 1.1