Repository navigation
Description
Describe the bug
When I'm trying to run my WinUI 3 app, I get this error in Event Viewer:
Log Name: Application
Source: Application Error
Date: 29-05-2022 17:30:40
Event ID: 1000
Task Category: Application Crashing Events
Level: Error
Keywords:
User:
Computer:
Description:
Faulting application name: CompInfo.exe, version: 1.0.0.0, time stamp: 0x62571150
Faulting module name: Microsoft.ui.xaml.dll, version: 3.0.0.2204, time stamp: 0xe15d9c14
Exception code: 0xc000027b
Fault offset: 0x0023bac9
Faulting process id: 0x0x59D8
Faulting application start time: 0x0x1D87353B61B4DB3
Faulting application path: C:\Program Files (x86)\CompInfo\CompInfo.exe
Faulting module path: C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.1-preview3_1000.485.2229.0_x86_8wekyb3d8bbwe\Microsoft.ui.xaml.dll
Report Id: 0f4e4cd6-ed23-4b81-bf6d-7aaade61fcda
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
](http://schemas.microsoft.com/win/2004/08/events/event);
1000
0
2
100
0
0x8000000000000000
6885
Application
Lenovo_laptop
CompInfo.exe
1.0.0.0
62571150
Microsoft.ui.xaml.dll
3.0.0.2204
e15d9c14
c000027b
0023bac9
0x59d8
0x1d87353b61b4db3
C:\Program Files (x86)\CompInfo\CompInfo.exe
C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.1-preview3_1000.485.2229.0_x86_8wekyb3d8bbwe\Microsoft.ui.xaml.dll
0f4e4cd6-ed23-4b81-bf6d-7aaade61fcda
Steps to reproduce the bug
- Create a WinUI 3 app with Windows App SDK Runtime 1.0.3
- Build it as Non-Packaged
- Use Inno Setup to create a setup.exe
- Run it on a computer which has Windows App SDK Runtime 1.0.3 installed
- App doesn't open
- Open Event Viewer and find issue under Windows Logs> Application
Expected behavior
App runs smoothly
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.0.3
Windows app type
- UWP
- Win32
Device form factor
Desktop
Windows version
Windows Insider Build (xxxxx)
Additional context
No response
Activity
marb2000 commentedon Jun 20, 2022
Did you install the Windows App SDK runtime on your machine? When your app is unpackaged you need it:
https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/deploy-unpackaged-apps#deploy-windows-app-sdk-runtime
lukedukeus commentedon Jul 14, 2022
Im experiencing this too, OceanCyan Tech (@OceanCyanTech) did you ever get it working?
dannyr-git commentedon Mar 13, 2023
I am having this same problem. My unpackaged app only runs on my machine. I've tested it with friends' Windows 10 machines and my wife's Windows 11 machine. All errors look like this :
I am compiling with this :
I've personally overseen that every machine installs :
I have no idea how to triage what is going on here. I did notice when you install the WindowsAppRuntime, you get a Microsoft.UI.Xaml.DLL that shows :
v2.8.2207.29001 , that is 6MB
But when I compile with true, the same dll in the folder is
v3.0.0.2302 (3.0.0-zmain.2302) and is 14.1MB
The full source of the app is here for reference :
https://github.com/dannyr-git/wingman
bogdan-patraucean commentedon Jul 5, 2023
This issue is happening for a packaged app installed from the Store as well. With all runtimes installed.
Might be related to this #8577, #8446 and #5746
It's caused by this error, as I got to find using windbg
Also, Microsoft states this as a know issue:
Miguel Ramos (@marb2000) , any updates on this? it's been 2 years since this framework launched and this issue is affecting a lot of users that try to use apps developed with WinUI 3.
e0ff commentedon Oct 27, 2023
I have a user who has experienced this error multiple times. Our app is packaged.
CodeFontana commentedon Feb 25, 2024
I'm new to WinUI3, just trying to get off the ground. I have prior WPF experience, so it's not like I'm totally lost.
I'm attempting to build a traditional desktop application, having nothing to do with the Windows Store. I've eliminated the launch profile for the 'packaged' version of the app, along with the 'Assets' folder, and the Package.appxmanifest, which appeared related only to the Packaged/Store version.
Additionally, I've added these three setting to my .csproj file:
Running in Visual Studio 2022 works without an issue.
Publishing to a folder has landed me on this thread with a crash:
Seems if I switch EnableMsixTooling back to 'true', everything works.
I didn't want to look into MAUI, as I don't need cross-platform.
Was looking into WinUI 3 due to the component gallery, would save me a lot of time vs plain old WPF.
With leaving EnableMsixTooling set to true, I'm continuing, but this already feels 'fragile' out of the box. I would highly recommend a project template for starting an 'Unpackaged' application, in addition to it not crashing with the published version. You might also consider rebranding 'unpackaged' as 'Traditional Desktop' and maybe 'Packaged' as 'Windows Store', if that's appropriate.
CodeFontana commentedon Feb 25, 2024
Coincidentally, 20 mins later, while browsing the WinUI 3 Gallery app, it also crashed on the same Microsoft.ui.xaml.dll:
I was searching icons at the time.
karmeye commentedon Feb 28, 2024
Thanks Brian Fontana (@CodeFontana)! I also got this in the event log after publishing the non package project generated by the "Blank App, Packaged with Windows Application Packaging Project" template.
This is supposed to work without that right?
CodeFontana commentedon Feb 28, 2024
I'm in the same boat-- I would believe you should be able to create a WinUI 3 app independently from MSIX and the Windows Store, but I can't say this for sure, as I'm new to this project type myself.
Seems WinUI project templates and settings need an overhaul. Disappointing it's so confusing/buggy out of the box!
sigmarsson commentedon Mar 15, 2024
Installed :
Deploy successfull and program icon appears in Windows start menu.
what is missing if self-contained is being demanded ? I wonder if WinUI will represent a workload in Visual Studio installer like MAUI does.
8 remaining items
SanskaarPatni commentedon Sep 19, 2024
I am facing the same issue. I created a blank app, packaged (winui 3 in Desktop)

The "Debug" configuration deploys fine, and app does not crash on launching.
Whereas the "Release" configuration deploys and the app crashes when launched from Start menu.
Is there any issue with the template?
jansapp commentedon Sep 23, 2024
same here

pratikone commentedon Sep 25, 2024
Thank you all for sharing your experiences with these failures. Your input is incredibly valuable in identifying and resolving these issues. After investigating multiple issues discussed in this thread, I’ve compiled a list of potential causes and solutions for the mux.dll crash failures. It addresses some of concerns. We need more data for better root cause analysis of crashes.
Investigation Results
Publishing Self-Contained Unpackaged App to a Folder Results in a Crash
Issue: The “Trim unused code” option is enabled by default in publish settings, leading to certain WinRT parts being incorrectly trimmed out. This causes a crash when running the build.
Solution: A fix is underway. More details can be found here. In the meantime, you can disable the “Trim unused code” option to prevent the crash.
EnableMSIXTooling=false Results in a Crash in Self-Contained Unpackaged App’s Launch
Issue: The EnableMsixTooling property must be set to true even for self-contained unpackaged apps, as it includes essential resource loading logic.
Solution: We are working on improving the default settings and providing clearer indications of required build properties.
Publishing Packaged App to a Folder Results and launching the published binary results in a Crash
Issue: Publishing a packaged app to a folder is not a valid configuration. This option is only applicable to unpackaged apps and can cause crashes.
Solution: Use Project -> Publish -> Create App Packages to create an MSIX package for packaged apps. We are working on disabling the folder publish option for packaged apps.
Published Self-Contained MSIX Installs Correctly but Crashes on Launch on Different Machines
Issue: This issue is challenging to reproduce. The crash stack is not helpful without symbols, and the likely cause is missing runtimes on the target machines.
Solution: Ensure all necessary dependencies (e.g., Universal CRT, .NET runtime) are installed.
Debugging Crashes
With WinUI 3 being source available and symbols available, you can get meaningful stack traces from crashes.
First ensure you have the right setup for debugging.
WinDBG: Add the Microsoft symbol server to the default symbol path. Launch the app and let it crash to fetch symbols and display a meaningful stack trace.
Symbol Path Setup
Visual Studio: Add the Microsoft symbol server in Options -> Debugging -> Symbols. Launch the app from Visual Studio, ensuring the debugging mode is set to Native, Mixed, or Auto.
Mixed Mode Debugging
Once you have a detailed stack trace, please create a new issue in the microsoft-ui-xaml repo and share your configuration and stack trace. This will help us address these problems more efficiently.
Few debugging techniques :
Investigating contents of stowed exception. This resource can be useful. https://learn.microsoft.com/en-us/shows/inside/c000027b.Windbg provides a useful !pde.dse command.
Set breakpoint on Microsoft.UI.Xaml!OnFailureEncountered.
Subscribing to Application.UnhandledException Event https://learn.microsoft.com/en-us/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.application.unhandledexception?view=windows-app-sdk-1.6
See crash debugging hands-on by Scott Jones (@Scottj1s) here : https://www.youtube.com/watch?v=uFgGhNGlPm4&t=1015s
If you encounter a new failure, please create a new thread instead of adding to this one. This will help us track and communicate more effectively. I will be closing this issue now.
Thank you for your cooperation and understanding!
Michael Hawker (@michael-hawker) for reference.
CodeFontana commentedon Sep 26, 2024
By closing this issue, I'm assuming you're saying WinUI is not a viable project type for traditional desktop needs. To be honest, my team abandoned the idea of using WinUI3 for our needs, based on the idea it was broken out of the box. This is feedback you need to hear when arbitrarily closing an issue based on a summary, and no concrete solutions. I'd rather you retire the technology than lie to us.
freemstr commentedon Sep 26, 2024
I can repro this issue in .NET 8 MAUI project as well with publish trimmed turned off, just FYI
Scottj1s commentedon Sep 26, 2024
Brian Fontana (@CodeFontana) our intent is not to ignore anyone, but to actively manage our backlog. This issue dates back a couple years to Windows App SDK 1.0.3, and many variations of crashes in Microsoft.UI.Xaml.DLL have been added to it. We've resolved a few of these, and are tracking others separately. We welcome new issues opened against the latest version of Windows App SDK, with clear repro steps.
Scottj1s commentedon Sep 26, 2024
freemstr please enter a new issue for your MAUI-related crash.
CodeFontana commentedon Sep 27, 2024
Yeah, you're right. It's just frustrating because it takes so long to address what I would call "getting started" issues. Unfortunately, my team is not using this technology, and now it would be an uphill battle to try and suggest again. There's a basic expectation this stuff should work gracefully out of the box-- I mean we really didn't have to go far to immediately bump into problems. And I still feel there should be more obvious templating for "Traditional Desktop" vs "Windows Store" applications. Sorry if my feedback was bit rough, might just be passion and disappointment. We want you guys to hit every mark, so us folks in the trenches can confidently and consistently recommend cohesive Microsoft tech stacks.
mirec75 commentedon Dec 15, 2024
The problem with Microsoft.UI.Xaml.dll is not limited just to developing a new app.
See my problem after I updated my Win11 office notebook to 24H2 with an always crashing file explorer.
and see the solution here:
https://answers.microsoft.com/en-us/windows/forum/windows_11-wintop_update/cannot-open-explorer-after-update-to-24h2-crashes/e149b7b0-2d67-445c-807b-e25d6b87d656
With "office notebook" I mean, I'm not developing anything on the notebook, just use it with MS Office, for office like stuff
and the file explorer was simply crashing each time when I wanted to open it.
fullstackdevsalmoh commentedon Sep 2, 2025
same here, ,, test small MAUI app works fine, but real app not working,, very disappointed