Software⏱️ 3 min read📅 2026-06-11

How to Fix: Why does the .exe file of a Modern App fail to run and produces an error regarding the app container?

Error running Modern App .exe file in Windows 10 technical preview.

Quick Answer: Run the app through its tile, or use the 'runas' command to run it directly.

The error message 'This application can run only in the context of an app container' appears when attempting to launch a Modern App directly from its .exe file, rather than through its tile. This issue primarily affects users running Windows 10 Technical Preview and those using the C:\ Program Files\\WindowsApplications folder to store their Modern Apps.

This error can be frustrating for users who prefer to run their Modern Apps from their desktop tiles instead of relying on the app container. However, this limitation is in place due to security concerns and the need for isolated execution environments.

🔍 Why This Happens

  • The primary reason for this issue lies in the design of Modern Apps, which are built using Universal Windows Platform (UWP) and require a dedicated container to run securely. The UWP architecture enforces sandboxing and isolation to prevent malicious activity and protect user data.
  • Another possible cause is related to the way Modern Apps store their configuration data. Some apps may not properly clean up their data when running from the desktop tile, leading to conflicts with the app container.

✅ Best Solutions to Fix It

Running Modern Apps through the App Container

  1. Step 1: To resolve this issue, you can launch your Modern App by double-clicking its tile on the Start screen or taskbar. This will automatically create an app container for the application, allowing it to run securely and correctly.
  2. Step 2: Alternatively, you can use the 'Run as administrator' option when launching the app from the desktop tile. This may help resolve any configuration data conflicts that could be causing issues with the app container.

Enabling App Containerless Launch (Experimental)

  1. Step 1: For users running Windows 10 Technical Preview, you can enable the experimental 'App Containerless Launch' feature to run Modern Apps directly from their .exe files. To do this, follow these steps:
  2. Step 2: 1. Press the Windows key + S to open the Search bar, type 'gpedit.msc', and press Enter to open the Local Group Policy Editor.

🎯 Final Words

By following these methods, you should be able to resolve the issue with running Modern Apps directly from their .exe files. Remember that this limitation is in place for security reasons, and using an app container or enabling App Containerless Launch can help ensure a smooth user experience.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions