Microsoft KB Archive/842022

= Event ID 9646 is logged in the application event log of your Exchange Server 2003 computer when a client opens many MAPI sessions =

Article ID: 842022

Article Last Modified on 10/25/2007

-

APPLIES TO


 * Microsoft Exchange Server 2003 Standard Edition
 * Microsoft Exchange Server 2003 Enterprise Edition

-



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
On a server that is running Microsoft Exchange Server 2003, an event that resembles the following event is logged in the Application log: Event Type: Error

Event Source: MSExchangeIS

Event Category: General

Event ID: 9646

Description:

Closing Mapi session &quot;/o= /ou= /cn=Recipients/cn= &quot; because it exceeded the maximum of 32 objects of type &quot;session&quot;.

When this issue occurs, you may also receive the following error message in Microsoft Office Outlook 2003:

Unable to open your default e-mail folders. The Microsoft Exchange Server computer is not available. Either there are network problems or the Microsoft Exchange Server is down for maintenance.



CAUSE
This issue may occur if the following conditions are true:
 * You have installed Microsoft Exchange Server 2003 Service Pack 1 (SP1) on the Exchange Server computer.
 * A program that is running on a client computer opens many MAPI sessions to the Exchange Server computer. The number of MAPI sessions is larger than the permitted limit.
 * You are using Microsoft Office Outlook 2007, and you add a large additional mailbox to your profile. For example, this issue may occur if the additional mailbox contains more than one thousand folders.

Exchange Server 2003 SP1 imposes a restriction on the number of permitted MAPI sessions per user. By default, the maximum number of permitted MAPI sessions per user is set to a hexadecimal value of 0x20 after you apply Exchange Server 2003 SP1.

Note A hexadecimal value of 0x20 converts to a decimal value of 32.



RESOLUTION
To resolve this issue, we recommend that you first determine whether the MAPI session limit is reached because of potential abuse, because a large additional mailbox was added, because it is the result of a bug in a client program, or because of client program design.

If the issue occurs because a large mailbox was added to a Cached Exchange Mode profile in Outlook 2007, you can disable the new Outlook 2007 default feature that causes this issue. To do this, follow these steps.

Note When you follow these steps, you cannot access the shared mailbox folders while you are working offline by using your Cached Exchange Mode profile.
 * 1) On the Tools menu, click Account Settings.
 * 2) Click the Exchange Server account, and then click Change.
 * 3) Click More Settings.
 * 4) On the Advanced tab, click to clear the Download shared folders (excludes mail folders) check box.
 * 5) Click OK, click Next, and then click Finish.

If the issue occurs because of a bug in a client program or because of client program design, we recommend that you contact the vendor to determine whether you can use one of the following procedures:
 * Obtain a fix
 * Grant View Information Store Status permissions to the account under which the program runs

Note Programs that run under an account that has these permissions are not affected by the MAPI sessions-per-user limit.

To grant View Information Store Status permissions, follow these steps:
 * 1) In Exchange System Manager, right-click the Exchange Server object or the mailbox store to which you want to grant the permissions, and then click Properties.
 * 2) Click the Security tab.
 * 3) Click the account to which you want to grant the permissions.

If the account is not listed, click Add, click the account name, click Add, and then click OK.
 * 1) Under the Allow column, click to select the View information store status check box, if this check box is not already selected.
 * 2) Click to clear the check boxes for any permissions that are not required, and then click OK.

Note You may have to follow this step if you clicked Add to add the account in step 3. This is because every check box in the Allow column was selected when you added the account in step 3.

If you cannot obtain a fix, and if you cannot configure the account to run together with View Information Store Status permissions, you can adjust the number of MAPI sessions per user that are permitted by configuring the registry settings. If you do this, try to determine the minimum value that you can use so that the client program can run without problems. If you raise the limit too high, the client program might affect the performance of the Exchange Server computer.



MORE INFORMATION
To change the value of the maximum permitted MAPI sessions per user from the default, you can configure the Maximum Allowed Sessions Per User registry entry. To do this, follow these steps.

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.  Click Start, click Run, type regedit in the Open box, and then click OK. Locate and then click the following registry subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem

 If the Maximum Allowed Sessions Per User entry does not exist, do the following:  On the Edit menu, point to New, and then click DWORD Value. Type Maximum Allowed Sessions Per User as the entry name, and then press ENTER.</ol> </li> Right-click the Maximum Allowed Sessions Per User entry, and then click Modify.</li> Click Decimal, type the value that you want to set in the Value data box, and then click OK.</li> Exit Registry Editor.</li></ol>

Keywords: kbtshoot kbprb KB842022

-

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

© Microsoft Corporation. All rights reserved.