Web Deploy issue ERROR_CONNECTION_TERMINATED

This post has been republished via RSS; it originally appeared at: IIS Support Blog articles.

While publishing an application from Visual Studio to Azure App Service, you may come across this error message:

 

Web Deploy experienced a connection problem with the server and had to terminate the connection.

 

Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED

Nedim_0-1596842295579.jpeg

 

In the case I worked on, the project publishes successfully to Local IIS and Azure Functions but not to Azure App Service.

 

Solution

Follow the steps below to find a solution to this issue:

  • Uninstall security software in the server and try again
  • Make sure Management Services are installed (Add Role and Features > Web Server)
  • Check if Web Management Services and Web Deploy Agent Service are running
  • Make sure Fiddler or any other similar software is not running during the publish
  • Check if TCP port 8172 are open

REMEMBER: these articles are REPUBLISHED. Your best bet to get a reply is to follow the link at the top of the post to the ORIGINAL post! BUT you're more than welcome to start discussions here:

This site uses Akismet to reduce spam. Learn how your comment data is processed.