Knowledge Base

Failed to configure MAPI profile

Problem:

You are unable to configure source Server connection due to a window pop-up error:

Failed to connect to Exchange Server using account <domain\user>. Failed to configure MAPI profile.

Also, MAPI Service log files contain the following entries:

Error: Error configuring Microsoft Exchange service in the profile. (0x81002746).
Error: Failed to configure MAPI profile. module: C2ExchangeMigration.MAPI.Storage.dll

Solution:

When you start the program and configure a source server connection via MAPI, the software looks for any existing MAPI profiles created by the CodeTwo migration tool, if any are found it deletes them and creates a completely new one. Normally this works like a charm. In some rare cases, however, this appears not to work - the software fails to create a new fully configured MAPI profile. As a result the MAPI profile is created but it does not allow to run the software. The exact cause to this is unknown, however, we have developed a workaround - the software can attempt to reuse any existing or manually created MAPI profile. Follow the steps below to apply the workaround:

  1. Update your CodeTwo Exchange Migration or CodeTwo Office 365 Migration installation to the newest version available (must be at least 2.0.1.0).
  2. Start the program and run the source server connection wizard. Choose Exchange Server and MAPI as your connection method.
  3. The software will automatically create the MAPI profile, but the migration will not start and you will see the above error.
  4. Close the program.
  5. Go to the installation folder which by default is:
    • for CodeTwo Exchange Migration:
      %ProgramFiles(x86)%\CodeTwo\Exchange Migration
    • for CodeTwo Office 365 Migration:
      %ProgramFiles(x86)%\CodeTwo\Office 365 Migration
  6. Open C2ExchangeMigration.MAPI.Service.exe.config file with Windows Notepad or any other text editor.
  7. Find setting SuppressMapiProfileDeletion and change its value from False to True.
  8. Download the MFCMAPI tool from this website.
  9. Run MFCMAPI on a computer where our software is installed.
  10. Logon to the MAPI profile using the profile of our software (Fig. 1.).

    506-3 
    Fig. 1. Choosing MAPI profile to logon with.

  11. If you click OK for the MAPI profile choice window there should be displayed an additional window (Fig. 2.).

    506-7 
    Fig. 2. Additional MAPI profile configuration window.

  12. Provide the Exchange Server FQDN as well as the migration tool service account name used for the source connection configuration.
  13. Click the Check Name button and both the Exchange server and the service account should be resolved.
  14. Click the Apply button.
  15. The MAPI profile is now fully configured.
  16. Start the software and re-run the source server connection configuration wizard.