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.
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
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.)
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 network issue, it is unable to connect to Azure environment. Try 2/3 times it will succeed.
Download FREE SharePoint 2019 Installation PDF Guide
This FREE PDF contains, Steps by step guide to install SharePoint 2019 Preview, prerequisites, hardware and software new features. First impression to SharePoint Server 2019 new modern site, modern lists and modern document libraries.