MSDeploy Error_Connection_Terminated while trying to deploy website

感情迁移 提交于 2019-12-01 13:45:08

问题


I have been getting the error "Error_Connection_Terminated" when trying to deploy a site to my localhost from the developer command prompt using MSDeploy and I am at the end of my rope trying to figure out whats causing it, the error is pretty ambiguous as to what the problem actually is. I've set privileges for the deploy folder correctly and I have restarted the Web Deployment Agent Service numerous times in the services window. I have gone over many solution's already posted on the net but to no avail as none of them deal with using the developer command prompt and instead only offer solution's by using visual studio itself.

Would anyone with experience with MSDeploy or IIS, be able to shed some light or advise on how to solve this.

the error states "Error_Connection_Terminated Error: Unexpected end of file has occurred. The following elements are not closed: results. Line 1, position 550. Error count: 1."


回答1:


I had the same problem and was able to successfully deploy after closing Fiddler on the machine on which I was running MSDeploy.

This would fit with Marcello's findings - I assume that he had Fiddler open and that he closed it when he rebooted.




回答2:


Well I came across the same issue like about a week ago and for all those who the solutions aforementioned didn't work out (because there might be many reasons behind this error) I figured out what was happening.

I tried everything the others above mentioned but didn't work since I don't use Fiddler, all Web deploy services were up and running as expected, Web publish profiles were working well before, and web deploy port was open.

After searching around what the cause was being and turned the firewall off because I wanted to make sure there was no application blocking involved. It turns out that antivirus was causing the _ERROR_CONNECTION_TERMINATED error.

Now I want to clearly state that many of you would say that was probably one of the first things to check but an admin installed it and I didn't know about it. Finally, I uninstalled the antivirus and everything went back to normal.

I guess that everyone agrees on this: Microsoft isn't very informative/specific about error's causes.




回答3:


I had the same issue. A reboot of my developer machine solved the problem (whereas rebooting the deployment server (a test machine), reinstalling msdeploy, using a different account and other solutions did not help...).




回答4:


Some help for others that have the same error code: If you are using the UI from Visual Studio, do not enter the http:// prefix on the server input (after all, the e.g. doesn't have it). I was really confused, because I have a saved profile WITH http:// and that one works. Note: My setup is Visual Studio 2013 for Web w/ Update 4 Maybe this started after installing update 4 which i did recently.

Update (after being downvoted): Here are some additional tips:

  • Ensure that Management Services is installed from the "Turn on and off features". This is part of the IIS configuration.
  • Ensure that "Web Management Service" is started. After installing the feature, its set to manual and not started.
  • Ensure that the "Web Deploy Agent Service" is started.
  • Ensure TCP port 8172 incoming is open on the server


来源:https://stackoverflow.com/questions/28416074/msdeploy-error-connection-terminated-while-trying-to-deploy-website

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