Web deployment task failed. Web Deploy experienced a connection problem with the server and had to terminate the connection - Azure App Service

72 views Asked by At

While trying to deploy a ASP.NET 4.8 web app (technically, an outlook add-in) to Azure App Service from Visual Studio, I'm hit with this error:
Publish has encountered an error.
Build failed. Check the Output window for more details.
"C:\Users\SomeUser\AppData\Local\Temp\tmp1E71.tmp"

The output window has the following error:
Web deployment task failed. (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: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED.) Epicor.Collaborate.Outlook.AddinWeb C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VisualStudio\v17.0\Web\Microsoft.Web.Publishing.targets 4455

Referred to a Microsoft Office Dev Center article called "Host an Office Add-in on Microsoft Azure" to deploy the add-in in Azure. Here's the address for the article: https://learn.microsoft.com/en-us/office/dev/add-ins/publish/host-an-office-add-in-on-microsoft-azure#step-3-create-a-web-app-in-azure-using-the-azure-portal

Tried to recreate this accepted solution:
Web Deploy experienced a connection problem with the server and had to terminate the connection - Azure App Service
Says, checking the 'Run from package file' checkbox fixed the issue for them.
But I'm unable to see any checkbox, neither 'Run from package file' nor 'Deploy as ZIP package'.

Publish settings and options

0

There are 0 answers