Blog Post

IIS Support Blog
1 MIN READ

Web Deploy issue ERROR_CONNECTION_TERMINATED

Nedim's avatar
Nedim
Former Employee
Aug 07, 2020

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

 

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
Published Aug 07, 2020
Version 1.0

1 Comment

  • vaibhavrana's avatar
    vaibhavrana
    Copper Contributor

    Thank you. You saved my day !!!. This was my problem.

    • Make sure Fiddler or any other similar software is not running during the publish