Microsoft KB Archive/831135

= Clients receive a &quot;service unavailable&quot; error message in their Web browsers when you run many application pools under separate identities in IIS =

Article ID: 831135

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Internet Information Services 6.0

-



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SYMPTOMS
When you run multiple application pools under different custom identities in Microsoft Internet Information Services (IIS), some worker processes may not initialize correctly. When this issue occurs, clients may receive a &quot;service unavailable&quot; error message when they try to visit Web pages that those application pools host. Additionally, the following warning message may be logged in the system log: Event Type: Warning

Event Source: W3SVC

Event Category: None

Event ID: 1009

Description:

A process serving the application pool ' ' terminated unexpectedly. The process id was ' '. The process exit code was '0x80'.

This issue does not occur when you use the three predefined identities. The predefined identities are Network Service, Local Service, and Local System.

Note This issue occurs in both the 32-bit version of IIS and the 64-bit version of IIS.



CAUSE
Together with each worker process that IIS creates under a separate identity, the system creates a new desktop object by allocating memory from the configured desktop heap. This issue occurs because, when that heap has been exhausted, IIS cannot create more worker processes. Clients then receive the &quot;service unavailable&quot; error message in their Web browsers when they try to visit Web sites that those application pools host.



RESOLUTION
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To resolve this issue, add the  registry key to your computer that is running IIS. This registry key permits all worker processes to run in one shared desktop, regardless of their worker process identities.

To add the  registry key:  Click Start, click Run, type regedit, and then click OK. Locate the following registry key:

 Right-click Parameters, point to New, and then click DWORD Value. Type UseSharedWPDesktop . Set the value for this new key to 1. Quit Registry Editor, and then restart IIS.</li></ol>

<div class="status_section">

STATUS
This behavior is by design.

Additional query words: IIS6

Keywords: kbprb KB831135

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.