Web deployment task failed Could not connect to the remote computer error SharePoint Add-in while deploying to Microsoft Azure

Web deployment task failed Could not connect to the remote computer error SharePoint Add-in while deploying to Microsoft Azure

Here we will discuss how we can resolve the below issues which comes while trying to deploy a provider hosted add-in using visual studio 2015 in SharePoint Online. For us, the error comes when we tried to preview in the publishing step. Once we click on Start preview in the below step the error comes.

Web deployment task failed Could not connect to the remote computer error SharePoint Add-in while deploying to Microsoft Azure
Web deployment task failed Could not connect to the remote computer error SharePoint Add-in while deploying to Microsoft Azure

Also, you can read:
How to get publish profile for Microsoft Azure web site?

Create new team project Team Foundation Server (TFS) Visual studio 2015

How to set the Search Center URL in SharePoint Online Office 365 using the JavaScript Object Model?

Web deployment task failed. (Could not connect to the remote computer (“enjoysharepoint.scm.azurewebsites.net”) using the specified process (“Web Management Service”) because the server did not respond. Make sure that the process (“Web Management Service”) is started on the remote computer. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC.)

Web deployment task failed Could not connect to the remote computer error SharePoint Add-in while deploying to Microsoft Azure
Web deployment task failed Could not connect to the remote computer error SharePoint Add-in while deploying to Microsoft Azure

Solution:
To resolve the issue, try to start preview multiple times. Once it is successful, then only click on Publish. Else it will not publish correctly, it will have error.


Sometimes due to a network issue, it is unable to connect to the Azure environment. Try 2/3 times it will succeed.

Hope this will be helpful.


You May Also like the Following SharePoint Online Tutorials:

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →