When I tried to install Sitecore XC 9.1, there was an error thrown in the powershell console:
ERROR + Start-WebAppPool -Name [appPool name] ERROR start-webitem : The service cannot accept control messages at this time.
According to https://superuser.com/questions/998201/trying-to-start-app-pool-via-powershell-script-getting-error-intermittently
Looks like there is something else slowing the application pool to fully stop. So before it is fully stopped, it can not be started. I have run into this situation before when I was using IIS Manager. Stopped an application pool, in the UI it indicated it is stopped, however I could not start it until wait for a while.
To get rid of this issue, we can add extra "wait" time for the application pool to get fully stopped.
Go to [resourcefiles folder]\SIF.Sitecore.Commerce.2.0.19\Modules\SitecoreUtilityTasks\SitecoreUtilityTasks.psm1, line 64 add following:
Similar edits should be implemented in C:\Program Files\WindowsPowerShell\Modules\SitecoreInstallFramework\2.1.0\Public\Tasks\Invoke-ManageAppPoolTask.ps1 after line 48
After that, run the import command to reload the SIF module, so our changes can take effect.
import-module sitecoreinstallframework -RequiredVersion 2.1.0 -Force
To enable comments sign up for a Disqus account and enter your Disqus shortname in the Articulate node settings.