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?
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 a network issue, it is unable to connect to the Azure environment. Try 2/3 times it will succeed.
Hope this will be helpful.
-: FREE PDF e-Book Download :-
51 JSOM Examples in SharePoint Online