A communication error has occurred while invoking commands in SharePoint host process

This SharePoint tutorial, how to resolve the below issue which comes while deploying a farm solution in SharePoint 2016/2013. The error might come in SharePoint 2013 and the steps are the same to resolve the issue in SharePoint 2016 also.

Recently we have developed a SharePoint farm solution and when we were trying to deploy the below error comes.

Error occurred in deployment step ‘Retract Solution’: A communication error has occurred while invoking commands in SharePoint host process: The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error. It looks like below:

Error occurred in deployment step ‘Retract Solution’: A communication error has occurred while invoking commands in SharePoint host process

The solution to resolve the issue is to increase the “Shutdown Time Limit (seconds)” and to increase the Startup Time limit (seconds) in Application pool.

To do so, open Internet Information Services (IIS) Manager and then select the particular application pool on Application Pools. Once selecting the particular application pool, from the right side Actions click on Advanced Settings…

Then expand the Process Model if it is not already expanded. And then change the Shutdown Time Limit (seconds) and Startup Time limit (seconds). By default it will be 90 seconds, in my case I have increased it to 180 seconds like below:

Error occurred in deployment step Retract Solution

You may like following SharePoint tutorials:

This tutorial, we learned how to fix, Error occurred in deployment step ‘Retract Solution’: A communication error has occurred while invoking commands in SharePoint host process.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>