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."
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:
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.
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...).
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.