Microsoft KB Archive/870655

= You may receive an &quot;Error code 80080005 -- server execution failed.&quot; error message when you start many COM+ applications =

Article ID: 870655

Article Last Modified on 11/14/2007

-

APPLIES TO


 * Microsoft COM+ 2.0 Standard Edition

-



SYMPTOMS
Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

When you start many Microsoft COM+ applications manually from the Component Services Microsoft Management Console (MMC) snap-in where each COM+ application is running under a different user account, you may receive the following error message:

Catalog Error: An error occurred while processing the last operation. Error code 80080005 -- server execution failed. The event log may contain additional troubleshooting information.

You will receive an error message that is similar to the following in the application log of Event Viewer:

Type: Error

Source: DCOM

Category: None

Event ID: 10010

Date: 31/03/2004

Time: 15:13:30

User: NT AUTHORITY\SYSTEM

Computer: MSHSRMSWEBP0007

Description: The server {F1673109-CF44-468D-9E23-FE4116F84CFA} did not register with DCOM within the required timeout.



CAUSE
If many COM+ applications run under different user accounts that are specified in the This User property, the computer cannot allocate memory to create a new desktop heap for the new user. Therefore, the process cannot start.



WORKAROUND
Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To work around this problem, modify the value of the following registry subkey:

To do this, follow these steps:  Click Start, click Run, type regedit, and then click OK. In Registry Editor, locate the following registry subkey:

By default, the Windows entry in the subkey has a value that is similar to the following (all on one line):

%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,3072 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ProfileControl=Off MaxRequestThreads=16

 Right-click the Windows entry, and then click Modify. The Edit String dialog box appears. In the Value data box, locate SharedSection, add 512 to SharedSection, and then click OK.

The newly changed Windows entry reads as follows:

%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,3072,512 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ProfileControl=Off MaxRequestThreads=16





Steps to reproduce the behavior
 Create 100 different local user accounts on your computer.</li> Open the Component Services MMC snap-in. To do this, follow these steps:  Click Start, point to Settings, and then click Control Panel.</li> In Control Panel, double-click Administrative Tools, and then double-click Component Services. The Component Services MMC snap-in appears.</li> In the left pane, expand Component Services, expand Computers, and then expand My Computer.</li></ol> </li> Create a COM+ application, and then set the application identity of the COM+ application. To do this, follow these steps:  Right-click COM+ Applications, point to New, and then click Application. The Welcome to the COM Application Install Wizard dialog box appears.</li> In the Welcome to the COM Application Install Wizard dialog box, click Next. The Install or Create a New Application dialog box appears.</li> Click Create an empty application. The Create Empty Application dialog box appears.</li> In the Enter a name for the new application box, type MyCOM1, and then click Next. The Set Application Identity dialog box appears.</li> Click This user, and then type a user name that you created in step 1 in the User box.</li> In the Set Application Identity dialog box, type your password in the Password box and in the Confirm Password box, and then click Next. The Thank you for using the COM Application Install Wizard dialog box appears.</li> Click Finish.</li></ol> </li> Add a component to the COM+ application. To do this, follow these steps:  <li>In the left pane of the Component Services MMC snap-in, expand MyCom1.</li> <li>Right-click Components, point to New, and then click Component. The Welcome to the COM Component Install Wizard dialog box appears.</li> <li>Click Next. The Import or Install a Component dialog box appears.</li> <li>Click Import component(s) that are already registered. The Choose Components to Import dialog box appears.</li> <li>In the Components on: My Computer list, click a component, and then click Next. The Thank you for using the COM Application Install Wizard dialog box appears.</li> <li>Click Finish.</li></ol> </li> <li>Repeat step 3 to create 100 COM+ applications that run under different local user accounts.</li> <li>Repeat step 4 to add components to the 100 COM+ applications that you created in step 5.</li> <li>In the left pane of the Component Services MMC snap-in, right-click each COM+ application that you created, and then click Start. After you start some COM+ applications, you receive the error message that is described in the &quot;Symptoms&quot; section.</li></ol>

<div class="references_section">