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.
📋 Table of Contents
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
- 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.
- 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)
- 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:
- 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.
❓ Frequently Asked Questions
🛠️ Related Fixes
How to Fix: Pc crashes shortly after launching game (rainbow
Fix Pc crashes shortly after launching game (rainbow six siege). Compl
How to Fix: Installing an APK on a locked down phone
Installing an APK on a locked down phone: Try using a rooted device, e
How to Fix: New PC build- no signal and no clue
Fix New PC build- no signal and no clue. Complete troubleshooting guid