我正在一个大型企业环境中工作。当我尝试使用 ms build 将我的解决方案部署到远程服务器时,每次尝试部署应用程序时都会出现此错误。
根据错误消息它说它无法连接但我可以ping到IP。我什至在两台机器的主机文件中都添加了主机 ip 和名称。我不知道我是否做错了什么以前有没有人遇到过这个问题。你是如何克服这个问题的?
注意:我已将我的 ip 替换为 myip.com... 并将站点名称作为我在此问题中的站点名称。(我的应用是 Asp.net MVC 4 Application)
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets (3847): Web deployment task failed.(Could not complete the request to remote agent URL 'https://myip.com/msdeploy.axd?site=my site name'.) This error indicates that you cannot connect to the server. Make sure the service URL is correct, firewall and network settings on this computer and on the server computer are configured properly, and the appropriate services have been started on the server. Error details: Could not complete the request to remote agent URL 'https://myip.com/msdeploy.axd?site=my site name'. Unable to connect to the remote server A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond myip.com
任何帮助都会得到真正的认可