Follow in Twitter & Facebook


Like in Facebook

Powered By Blogger Widgets

Free Download

FREE Tools


Monday, July 17, 2017

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

We will see how we can resolve the below issue which comes while deploying a farm solution in SharePoint 2016. The error might come in SharePoint 2013 and the steps are same to resolve the issue in SharePoint 2013 also.

Recently we have developed a farm solution and when we were tyring 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:


Solution:


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 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:


This might be helpful.




0 on: "Error occurred in deployment step 'Retract Solution': A communication error has occurred while invoking commands in SharePoint host process"