Application Pool not starting after Solution Deployment

Markus Kolbeck
Markus' Blog
Published in
1 min readOct 2, 2013

Problem
After installing or updating SharePoint solutions, the IIS application pools get restarted (IISRESET).
After the IISRESET, the application pool would not start automatically (although configured: Start Automatically: True).
Eventually, the following error message would pop-up after trying to start the application pool manually:

There was an error while performing this operation. The service cannot accept control messages at this time Exception HRESULT 0x80070425

In the eventlog the following warning message is logged:

Log Name: System
Source: Microsoft-Windows-WAS
Date: 02.10.2013 12:48:02
Event ID: 5013
Task Category: None
Level: Warning
Keywords: Classic
User: N/A
Computer: computername
Description:
A process serving application pool ‘ApplicationPool’ exceeded time limits during shut down. The process id was ‘6252’.

Solution
Create a batch file with the following lines of code and save it locally on the affected server:

sleep 10
C:WindowsSystem32inetsrvappcmd start apppool /apppool.name:"ApplicationPool"

Attach a task to the event (right click on the eventlog message in event viewer).
Within the task, run the previously created batch file.
Whenever an IISRESET occurrs, the eventlog message will trigger the batch file and start the application pool.

Notes
I have not figured out why the application pool would not restart automatically, yet. The described solution is only a workaround.

#sharepoint

--

--