Here we will discuss how we can resolve the issue which comes while trying to deploy sharePoint hosted add-in to SharePoint online office 365. Recently we were developing a workflow using visual studio 2015 for SharePoint online site as a SharePoint hosted add-in. When we try deploying the workflow from visual studio, it gave the below error after taking long time to deploy.
The error comes as:
Error occurred in deployment step ‘Install app for SharePoint’: Communication with the SharePoint server in canceled.
It looks like below:
Read some sharepoint online tutorials:
- Activate publishing feature in SharePoint Online using .Net managed client object model code
- SharePoint online Read csv file from document library using .Net managed client object model csom
- Steps to create search center site in SharePoint online using .Net client object model code
Due to network connectivity, sometimes it took long time to deploy and if it took too much time, then the error message will come sometime.
So the way we resolve it is, we restarted the visual studio and then retry deploying the add-in. After that the issue did not come and the add-in deployed successfully.
SharePoint Online FREE Training
JOIN a FREE SharePoint Video Course (3 Part Video Series)