eM Client 11.0.1201.0 (MSIX) breaks iCalendar handling in Microsoft Outlook 2010

Environment

  • Windows 11 Pro, build 10.0.22631
  • eM Client 11.0.1201.0 x64, installed as a packaged app (eMClient.20054CA46072C_11.0.1201.0_x64__veq4nz3ze5v72); reproduced with 11.0.1267.0 as well (see below)
  • Microsoft Outlook 2010 32-bit (14.0.7268.5000), installed side by side
  • Installed via winget install --id eMClient.eMClient -e. This installs only the MSI “eM Client (Updater)” (C:\Program Files (x86)\eM Client\MailClient.exe), which downloads and installs the MSIX package when eM Client is started.

Problem

After installing eM Client, Outlook can no longer open or export .ics files. Opening an .ics file first showed “Either there is no default mail client or the current mail client cannot fulfill the messaging request” (while eM Client was the default MAPI client). After setting Outlook as the default mail client, the error became “The file … is not a valid Internet Calendar file”. This happened even with minimal, well-formed .ics files. Exporting one of Outlook’s own appointments with AppointmentItem.SaveAs(path, olICal) also failed (“The operation failed”).

Findings

  • A Process Monitor trace of the failing export shows that Outlook reads HKCU\Software\Clients\Mail and HKLM\SOFTWARE\Clients\Mail and then opens HKLM\SOFTWARE\Clients\Mail\PackagedMail\eMClient.20054CA46072C_11.0.1201.0_x64__veq4nz3ze5v72, including its ClsidExtended value, immediately before the operation fails. It never touches the target file.
  • With that registry key removed, the error changed to “Cannot find this file”, so the failing step depends on the packaged registration.
  • After uninstalling the eM Client package and restarting Outlook, .ics export and import work normally again.
  • Reproduced: after the package had been removed and Outlook worked again, I started MailClient.exe from the updater. It reinstalled the MSIX package, this time as 11.0.1267.0. After restarting Outlook, the iCalendar export failed again (“The operation failed”), and HKLM\SOFTWARE\Clients\Mail had been reset to PackagedMail by the installation (it was Microsoft Outlook before; HKCU stayed Microsoft Outlook). After removing the package, resetting the HKLM value and restarting Outlook, the export worked again.
  • The behaviour is therefore not limited to an upgrade from an older version: a fresh install via winget leads to the packaged variant and to the same failure.
  • Outlook has to be restarted after installing or removing the package, because it appears to read the list of registered mail clients at startup.

Relation to the known “default email program” message

This is related to, but goes beyond, the thread “Error on Windows 11 with eM Client v11: Microsoft Outlook (Classic) is not running as the default email program” (Error on Windows 11 with eM Client v11 Microsoft Outlook (Classic) is not running as the default email program). There, the message is attributed to Outlook and the advice is to set Outlook as the default mail client. In my case, setting Outlook as the default (HKCU and HKLM) removed only the first message. Outlook’s iCalendar handling stayed broken until the packaged eM Client was uninstalled, so this is not just a question of the default mail client setting.

Request

Please check why the MAPI registration of the packaged eM Client (PackagedMail, ClsidSimple/ClsidExtended) interferes with Outlook, and whether a non-packaged installer avoids the problem.

Related issues.

Following.

Additional findings: Windows 10, live crash dump and taskbar behaviour

I can confirm a very similar issue on Windows 10, not just Windows 11.

Environment

  • Windows 10 Pro 22H2, build 19045
  • Microsoft Outlook 2010 32-bit, version 14.0.7268.5000
  • eM Client 11.0.1201.0 x64
  • The actual eM Client executable is installed under C:\Program Files\WindowsApps\eMClient.20054CA46072C_11.0.1201.0_x64__veq4nz3ze5v72, confirming that the running application is the MSIX package, despite having the eM Client Updater listed separately.

Reproduction and additional symptoms

  • Opening an ICS file with Outlook closed starts Outlook, which shows a blank/grey calendar window with a spinning cursor, displays the default-mail-client warning twice, and then crashes.
  • Opening an ICS file while Outlook is already running produces the two warnings followed by “The file is not a valid Internet Calendar file”; Outlook stays open.
  • Exporting a test appointment from Outlook to ICS also crashes.
  • The issue persists in Outlook Safe Mode and with a new, empty Outlook profile. A minimal ICS file reproduces the problem too.
  • Outlook’s built-in repair and Windows component repair (DISM and sfc /scannow) did not resolve it.

Live debugger findings

I reproduced the crash under WinDbg. The exception is:

0xc0000005 — Access violation

The faulting function is:

mmgaclient!PersistedMmgaSessions::ReleaseSession+0x91

The instruction attempts to read [eax-4] with eax=00000000. The stack shows a background thread in mmgaclient.dll. The loaded DLL is:

C:\Windows\SysWOW64\mmgaclient.dll

Version 10.0.19041.4355.

This is the same function and exception pattern as in my earlier crash dump. During startup, MAPI32 also logs:

80073D54 — The process has no package identity.

PackagedMail registration

My registry contains:

HKLM\SOFTWARE\Clients\Mail\PackagedMail\eMClient.20054CA46072C_11.0.1201.0_x64__veq4nz3ze5v72

with these values:

  • ClsidSimple = {740C833D-BD87-9A6B-73D4-C076D26AACD7}
  • ClsidExtended = {B312B36E-6D5E-776B-C629-5EFD1A3E03CF}

The default value of HKLM\SOFTWARE\Clients\Mail is still Microsoft Outlook on my system, so the problem persists even with Outlook registered as the machine-level default mail client.

Taskbar and process behaviour

When the Outlook warning appears, its taskbar button is grouped immediately to the right of the eM Client button. Moving the eM Client button with 7+ Taskbar Tweaker moves the warning’s button with it. If eM Client is closed, the warning appears as a new, separate item at the end of the taskbar.

I also found five instances of MmgaServer.exe still running after closing both Outlook and eM Client. The executable is located in C:\Windows\System32; its file version is 10.0.19041.4355, and its company metadata says Microsoft.

These observations do not prove that the taskbar grouping or the MmgaServer.exe processes cause the crash, but they may help explain the connection between the packaged eM Client registration, Windows MAPI/MMGA and Outlook’s iCalendar handling.

Question: Could the MSIX PackagedMail registration, particularly ClsidExtended, cause Outlook 2010’s iCalendar handling to fail on Windows 10 as well? Is there a supported way to prevent this conflict while keeping eM Client 11 installed and usable, rather than uninstalling the package and having the issue return after reinstalling it?

I ran the registry patch you provided but still have the same pop from Microsoft Outlook regarding no default mail client

Hi everyone, I’m having a very similar issue with eM Client 11.0.1389.0 and Outlook Classic (Microsoft 365, 64-bit) on Windows 10.

Every time I start Outlook, I get the “no default mail client” warning. A second warning appears associated with eM Client, even when eM Client isn’t running. Once I close both dialogs, Outlook crashes.

The Windows Event Log consistently shows:

  • Faulting module: mmgaclient.dll (10.0.19041.4355)
  • Exception code: 0xc0000005
  • Outlook version: 16.0.20326.20232

I’ve already tried both official registry fixes, verified the 32-bit and 64-bit MAPI settings, removed old eM Client registry leftovers, restarted Windows, and tested Outlook in Safe Mode. Nothing helped.

Interestingly, a newly created Outlook profile with an Exchange account works fine, while my existing IMAP profile (with a separate PST for my calendar) still crashes.

So this seems to be related to the MSIX/MAPI integration rather than just the default mail client setting.

Has anyone found another workaround or heard anything about a proper fix? I’d really like to keep both applications installed.

Thanks!

Hi @Harry79
Unfortunately, the registry fix only works on Windows 11. Windows 10 doesn’t have the AlwaysUseLegacyMapiRegistration registry setting.

On Windows 10, if an MSIX mail app with the windows.mailProvider capability is installed, Windows ignores the default mail app setting. Windows 10 also has some built-in exceptions for Outlook, and we weren’t able to reproduce the issue on Windows 10 with only eM Client and Outlook installed.

It looks like the same problem can also happen when other apps try to use Extended MAPI (plugins, PST backup apps, etc). Some of these apps try to find the Office installation directly, which fails because Office is no longer installed via MSI either.

We’re working on a workaround inside eM Client: a special DLL that forwards the request to Outlook if it’s installed, or at least suppresses the error when it doesn’t apply. The update should hopefully be out soon. Sorry for the inconvenience in the meantime.

Hi @Olivia_Rust

thanks for the hint about AlwaysUseLegacyMapiRegistration. Setting it to 1 under HKLM\SOFTWARE\Clients\Mail solves the problem on my system (Windows 11 Pro 22631, Outlook 2010 32-bit, eM Client 11.0.1389.0 MSIX x64). Setting it back to 0 brings the error back.

As far as I can tell, the conflict comes from eM Client registering as an Extended MAPI provider (ClsidExtended). Without it, Outlook and other Extended MAPI programs would probably not be affected. Three questions:

  • What is ClsidExtended needed for? If it’s for programs that send mail via Extended MAPI, could it be omitted or made optional when Outlook is installed? Simple MAPI would still go to eM Client.
  • Will the planned forwarding DLL work with 32-bit Outlook, given that the package is x64? Just suppressing the error wouldn’t help, as import and export would still fail.
  • Will eM Client updates keep AlwaysUseLegacyMapiRegistration? The installer resets HKLM\SOFTWARE\Clients\Mail to PackagedMail each time.

Thanks for looking into this.

We’re working on a workaround inside eM Client: a special DLL that forwards the request to Outlook if it’s installed, or at least suppresses the error when it doesn’t apply. The update should hopefully be out soon. Sorry for the inconvenience in the meantime.

That would be great. Till now, I have found no fix as Windows 10 User an live with crashing Outlook or uninstall Em Client. Thanks a lot.

Unfortunately, since we switched to the MSIX package, these registry entries are created by Windows itself. We can’t set them or stop Windows from changing them during installation.

To your specific questions:

  • ClsidExtended: Windows sets this value, and there’s no way for us to tell the system that we don’t support Extended MAPI.
  • 32-bit Outlook: Unfortunately not. The DLL has to match Outlook’s bitness, so the x64 package won’t work with 32-bit Outlook.
  • AlwaysUseLegacyMapiRegistration: Updates won’t keep this setting, so you’ll need to set it again after each update.

We know this isn’t ideal. We’ll keep watching for changes on the Windows side, and if anything comes up that lets us make this easier, we’ll be glad to look into it.

Sitting on the same issue. I am unable to use eMclient, in combination with Outlook Classic. I would really like to start using eMclient again. I don’t take the ‘It’s a Window issue’ for answer, because imho it isn’t. So when will this incompatibilty issue be solved?

Windows 10 workaround that worked for me (no uninstall needed)

I had the same problem: clicking a .ics attachment in Outlook classic gave “Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Outlook and set it as the default mail client.”

My setup:

Windows 10 Pro 22H2, build 19045.6456
Outlook classic, Microsoft 365 (Current Channel), version 16.0.20326.20232, 64-bit
eM Client 11.0.1389.0, MSIX package, x64
Outlook was already set as the default mail app in Windows, and HKLM\SOFTWARE\Clients\Mail already had Microsoft Outlook as its default value

What I found: the per-user key HKCU\Software\Clients\Mail had no default value (the “(Default)” entry was blank). Setting it to Outlook fixed it right away. No admin rights needed, and both eM Client and Outlook stay installed.

The Fix: From a normal (not admin) Command Prompt:

reg add “HKCU\Software\Clients\Mail” /ve /t REG_SZ /d “Microsoft Outlook” /f

Then close Outlook completely (check Task Manager that OUTLOOK.EXE is gone) and reopen it. .ics attachments open normally again.

To undo it (if this fix does not work for you):

reg delete “HKCU\Software\Clients\Mail” /ve /f

I didn’t need to change anything else. The PackagedMail\eMClient… key is still in place under HKLM. I haven’t tested whether an eM Client update resets this, so if the error comes back after an update, check that value first.

Hope this helps other Windows 10 users until the official fix is out.

This solution was provided by my good friend Claude.

Thanks for sharing this, it may help other Windows 10 users. Please note that eM Client updates can reset these registry settings, so check the value again after an update. We are still working on a workaround inside eM Client and will post here when it is in a released version.

Interesting that you also have Em Client and Outlook Classic in Windows 10 and never face the problem that Outlook is crashing. My is crashing non-stop. Thanks for your hints.

Wow! It resolved my problem as well. Outlook is not crashing any more. It runs just some minutes for now, so I have no guarantee that everything is fixed. But for now, no Outlook crash on outlook start, which is a big improvement! Also, no error in Em Client and both are running for now. Thanks a lot Brian!
Still hoping for an Em Client fix for future update without hassle.

Not 100% sure, if the problem is related to the MAPI issue of this thread, but I cannot send calendar appointments from outlook. I can send mails per SMTP, I can read mails per IMAP. But setting up a appointment in calendar, the out mail stays in my outbox and throws errors. I tested a lot, but I was unable to find a workaround to send an appointment.