WWW service encountered an error when it tried to secure the handle of the application pool Rule

  • ID:  Microsoft.Windows.InternetInformationServices.2008.WWW.service.encountered.an.error.when.it.tried.to.secure.the.handle.of.the.application.pool
  • Description:   
  • Target:  IIS 7 Application Pool
  • Enabled:  On Essential Monitoring

Overridable Parameters

Parameter Name Default Value Description Override
Priority 1  
Severity 1  

Run As Profiles

Name
Default

Rule Knowledgebase

Summary

Web sites and Web applications depend on the availability of Internet Information Services (IIS) application pools. IIS application pools in turn depend on the Windows Process Activation Service (WAS). If WAS is not running or errors occur during the startup or shutdown of an application pool, Web sites and Web applications may not be available.

Causes
This rule does not contain any causes.
Resolutions

Set the application pool identity and restart the application pool

The application pool identity must be set to a valid account for the application pool to function. There are two types of Identity for the application pools: Built-in and Custom. The built-in accounts are NetworkService, LocalService, and LocalSystem. The default (recommended) is NetworkService. If you set the application pool identity to a custom account, you will have to ensure that the user credentials are valid and that the user is a member of the IIS_USRS group. The following procedures describe how to set the application pool identity and then restart the application pool.

To set the application pool identity:

  • Click Start, click Control Panel, and then click Administrative Tools.

  • Right-click Internet Information Services (IIS) Manager and select Run as administrator.

  • In the Connections pane on the left, expand the computer, then select the Application Pools folder underneath the computer name.

  • In Features View, select the application pool. In the Actions pane, select Advanced Settings...

  • Under Process Model, verify the Identity type. The default is NetworkService.

  • If the identity type is set to a specific user (not one of the built-in accounts), click the button to the right of the identity name, and click Set to specify the custom account credentials.

  • If you specified a custom user, continue with the next step; otherwise, skip to the procedure for stopping and restarting the application pool. If the application pool identity is set to a custom user, you have to add the user to the IIS_USRS group on the computer.

To add a specific user (custom account) to the IIS_USRS group:

  • Click Start, Administrative Tools, Computer Management.

  • In the left pane, expand Local Users and Groups.

  • Select Groups, then double-click IIS_USRS.

  • Add the custom user that you specified earlier for the process model identity.

  • Stop and restart the Web services by using the steps in the next procedure.

Note: After you add a user to the IIS_USRS group, the Web services must be stopped and restarted for the new logon rights to take effect. This will stop all Web traffic to the server.

If you did not add an identity to the IIS_USRS group, continue to the steps to stop and restart the application pool.

To stop and restart the Web services:

  • Open an elevated Command Prompt window. Click Start, point to All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.

  • Type net stop was /y and press ENTER.

  • Type net start was and press ENTER.

  • Type net start w3svc and press ENTER.

To stop and restart the application pool:

  • Open IIS Manager.

  • In the Connections pane, expand the server node and click Application Pools.

  • In Features View, select the application pool you want to stop and restart.

  • In the Actions pane, click Stop to stop the application pool, then Start to restart the application pool.

You can also restart the application pool using the link below:

Recycle Application Pool

External References
This rule does not contain any external references.

See Also for Windows Internet Information Services Management Pack


Downloads for Windows Internet Information Services Management Pack

AZURE OPTIMIZATION ASSESSMENT GET STARTED
MIGRATION TO AZURE GET STARTED
SYSTEM CENTER MIGRATION TO AZURE GET STARTED
MIGRATION TO AZURE FOR SQL AND WINDOWS 2008 GET STARTED