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:
- Update your CodeTwo Exchange Migration or CodeTwo Office 365 Migration installation to the newest version available (must be at least 2.0.1.0).
- Start the program and run the source server connection wizard. Choose Exchange Server and MAPI as your connection method.
- The software will automatically create the MAPI profile, but the migration will not start and you will see the above error.
- Close the program.
- 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
- for CodeTwo Exchange Migration:
- Open C2ExchangeMigration.MAPI.Service.exe.config file with Windows Notepad or any other text editor.
- Find setting SuppressMapiProfileDeletion and change its value from False to True.
- Download the MFCMAPI tool from this website.
- Run MFCMAPI on a computer where our software is installed.
- Logon to the MAPI profile using the profile of our software (Fig. 1.).
- If you click OK for the MAPI profile choice window there should be displayed an additional window (Fig. 2.).
- Provide the Exchange Server FQDN as well as the migration tool service account name used for the source connection configuration.
- Click the Check Name button and both the Exchange server and the service account should be resolved.
- Click the Apply button.
- The MAPI profile is now fully configured.
- Start the software and re-run the source server connection configuration wizard.