SharePoint 2010: Error occurred in deployment step ‘Recycle IIS Application Pool’


SharePointRecently in a project using SharePoint 2010 and Visual Studio 2010 during a deployment procedure we required to retract some packages before deploy a new version of the same packages, all worked fine until Visual Studio suddenly show us the next error.

 ‘Recycle IIS Application Pool’: The open operation did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.

Solution: some times the best solution is find the most easy way, so after trying to restart IIS and try the process again unsuccessfully, the solution I found was to close Visual Studio, then open the solution and try retract the package one more time .. yeap, believe me it works!!