ant
ant

Reputation: 1137

Deploy from octopus to azure gives connection error

I deploy my asp.net core app from octopus (v2018.8.12) to azure. And after update app from .NET Core 1.1 to 2.1 deploy stopped to work and i get this exception:

Microsoft.Web.Deployment.DeploymentDetailedException: Web Deploy experienced a connection problem with the server and had to terminate the connection. Contact your server administrator if the problem persists. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED. ---> System.Xml.XmlException: There is an unclosed literal string. Line 1, position 84.

Deploy from visual studio still works. Also deploying of another apps works. Any suggestions?

Upvotes: 1

Views: 317

Answers (2)

alastairtree
alastairtree

Reputation: 4279

I had the same issue, the cause was that TCP port 8172 needed by webdeploy (which is used under the covers by Octopus Deploy and Azure App Service) was being blocked by a outbound firewall from my deployment machine. Opening the port fixed the issue, Or you can swap to use ZipDeploy and a powershell script

Upvotes: 0

ant
ant

Reputation: 1137

Recreation of whole web app helped

Upvotes: 0

Related Questions