Event ID 5057 — IIS Application Pool Availability

Updated: March 24, 2009

Applies To: Windows Server 2008 R2

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.

Event Details

Product:

Internet Information Services

ID:

5057

Source:

Microsoft-Windows-WAS

Version:

7.5

Symbolic Name:

WAS_EVENT_FAILED_PROCESS_CREATION_NO_ID

Message:

Application pool %1 has been disabled. Windows Process Activation Service (WAS) did not create a worker process to serve the application pool because the application pool identity is invalid.

Resolve

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 perform these procedures, you must have membership in Administrators, or you must have been delegated the appropriate authority.

To set the application pool identity:

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

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.

Verify

To perform this procedure, you must have membership in Administrators, or you must have been delegated the appropriate authority.

To verify that an application pool has started:

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