Knowledge Base

XWEB: MMP files Created by MAPI and CDO

Article ID: 166599

Article Last Modified on 2/26/2007


APPLIES TO


This article was previously published under Q166599
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

SYMPTOMS

When you use Collaboration Data Objects (CDO) or Messaging Application Programming Interface (MAPI) in an ASP page to access information on Microsoft Exchange Server 5.5 or Microsoft Exchange 2000 Server, files with an .mmp extension are created in your %windir% directory by default.

CAUSE

The .mmp file is a temporary file used by Extended MAPI (and hence CDO) to store certain profile information during the active session. This file should be deleted after the user logs off and the session is closed.

Because these files are created dynamically, the account running the ASP page (usually the Microsoft Internet Information Server (IIS) Anonymous Logon account: IUSR_Server) needs to have change permissions on the %windir% directory.

Also, a registry key exists that you may use to control which directory creates the .mmp files.

MORE INFORMATION

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.
If the following registry key is present, the .mmp files will be created there instead of the \Winnt directory:

HKEY_LOCAL_MACHINE/Software/Microsoft/Windows Messaging Subsystem

To create the registry entry, do the following:
  1. Start Registry Editor (Regedt32.exe) and go to the following key:

    HKEY_LOCAL_MACHINE/Software/Microsoft/Windows Messaging Subsystem

  2. On the Edit menu, click Add Value.
  3. Type the following values:
String Value: ProfileDirectory 
Value Data: Path to the directory you want the temporary files to be created in.
Example: C:\MyComputer\Temporary.
				
If the registry key/value is not present, the .mmp files are created in the Winnt directory as before.

NOTES

Keywords: kbbug kbusage KB166599