How to fix Error 1156 on Windows 11

Why This Error Happens

Error 1156 typically occurs when Windows attempts to use Dynamic Data Exchange (DDE) to pass a command to an application via a file association, but the target application fails to respond in time or its registry entry is corrupted. This often happens when a program was improperly uninstalled, leaving broken shell\open\ddeexec keys in the registry, or when the application referenced by a file type is no longer installed. It can also occur due to a stuck or unresponsive process that fails to accept the incoming command handshake.

Step-by-Step Resolution Guide

  1. Identify the triggering file association
    Note which file type or shortcut caused the error (e.g., .txt, .htm, .lnk). Open Settings > Apps > Default Apps, search for that file extension, and reset it to a known working application.

  2. Clear the broken DDE registry entries
    Press Win + R, type regedit, and navigate to:
    HKEY_CLASSES_ROOT\[FileExtension]\shell\open\ddeexec
    If this key exists and points to a missing or outdated application, delete the ddeexec subkey (back up the registry first via File > Export).

  3. Re-register the affected application
    If the issue stems from a specific app (e.g., Outlook, Internet Explorer legacy shortcuts), reinstall or repair that application via Settings > Apps > Installed Apps > [App Name] > Modify/Repair.

  4. Reset File Explorer and restart the shell
    Open Task Manager (Ctrl+Shift+Esc), find Windows Explorer, right-click and select Restart. This clears any hung DDE sessions without requiring a full reboot.

  5. Run System File Checker (SFC) and DISM
    Open Command Prompt (Admin) and run:

   sfc /scannow
   DISM /Online /Cleanup-Image /RestoreHealth

This repairs corrupted system files that may be interfering with command handoffs between apps.

Alternative or Verification Steps

  • Verify the fix: Double-click the file type that previously triggered the error and confirm it opens without the 1156 message.
  • Alternative fix: If the error persists, create a new local user profile (Settings > Accounts > Other Users > Add Account) and test the same action—if it works there, the original profile’s registry hive is likely corrupted and may need targeted repair via regedit on that user’s NTUSER.DAT.