MSDeploy Error_Connection_Terminated while trying

2019-06-14 22:38发布

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

enter image description here

4条回答
孤傲高冷的网名
2楼-- · 2019-06-14 22:48

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
查看更多
聊天终结者
3楼-- · 2019-06-14 22:50

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.

查看更多
Ridiculous、
4楼-- · 2019-06-14 23:07

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

查看更多
再贱就再见
5楼-- · 2019-06-14 23:09

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.

查看更多
登录 后发表回答