question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't run app from Store, but could from Visual Studio

See original GitHub issue

Describe the bug

I recently published app to Store, but found out app could not launch. So I try run app from Visual Studio and everything is okay. App is WinUI 3 packaged, C#, desktop type.

Event viewer report: Faulting application name: CloudCash.Client.exe, version: 1.0.1.0, time stamp: 0x61e1d74c Faulting module name: Microsoft.ui.xaml.dll, version: 3.0.0.2203, time stamp: 0x18fd9864 Exception code: 0xc000027b Fault offset: 0x00237ca9 Faulting process id: 0x0x58C8 Faulting application start time: 0x0x1D83C764D801E4D Faulting application path: C:\Program Files\WindowsApps\ParaBellumSoftware.CloudCash_1.0.29.0_x86__gt9edag94s58j\CloudCash.Client\CloudCash.Client.exe Faulting module path: C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.0_1.440.209.0_x86__8wekyb3d8bbwe\Microsoft.ui.xaml.dll Report Id: 1c662a86-1d75-48ba-8144-bd62db652af1 Faulting package full name: ParaBellumSoftware.CloudCash_1.0.29.0_x86__gt9edag94s58j Faulting package-relative application ID: App

Partner Center exception classification: stowed_exception_80131040_winrt.runtime.dll!unknown

Stack trace from Partner Center related to app: Frame Image Function Offset 0 combase.dll RoOriginateLanguageException 0x0000000000000038 1 WinRT.Runtime.dll undefined 0x00000000000391FE 2 Microsoft.WinUI.dll global::Microsoft.UI.Xaml.Controls.ITabViewStatics.get_CanDragTabsPropertyt 0x0000000000000003 3 Microsoft.ui.xaml.dll DirectUI::FrameworkApplicationFactory::Start 0x000000000000018E 4 Microsoft.WinUI.dll undefined 0x0000000000320DBC 5 CloudCash.Client.dll undefined 0x0000000000023092 6 coreclr.dll CallDescrWorkerInternal 0x0000000000000034 7 coreclr.dll CallDescrWorkerWithHandler 0x0000000000000066 8 coreclr.dll MethodDescCallSite::CallTargetWorker 0x00000000000000E7 9 coreclr.dll RunMainInternal 0x00000000000000E4 10 coreclr.dll RunMain 0x000000000000009F 11 coreclr.dll Assembly::ExecuteMainMethod 0x000000000000017C 12 coreclr.dll CorHost2::ExecuteAssembly 0x000000000000013D 13 coreclr.dll coreclr_execute_assembly 0x00000000000000C6 14 hostpolicy.dll run_app_for_context 0x0000000000000414 15 hostpolicy.dll run_app 0x0000000000000052 16 hostpolicy.dll corehost_main 0x00000000000000F5 17 hostfxr.dll execute_app 0x0000000000000253 18 hostfxr.dll `anonymous namespace’::read_config_and_execute 0x00000000000000B9 19 hostfxr.dll fx_muxer_t::handle_exec_host_command 0x0000000000000104 20 hostfxr.dll fx_muxer_t::execute 0x0000000000000238 21 hostfxr.dll hostfxr_main_startupinfo 0x000000000000008B 22 CloudCash.Client.exe exe_start 0x000000000000079A 23 CloudCash.Client.exe wmain 0x000000000000008A 24 CloudCash.Client.exe __scrt_common_main_seh 0x00000000000000FA 25 kernel32.dll BaseThreadInitThunk 0x0000000000000019 26 ntdll.dll __RtlUserThreadStart 0x000000000000002B 27 ntdll.dll _RtlUserThreadStart 0x000000000000001B

I have no idea, where to look, what to try, … Simply how to debug.

Steps to reproduce the bug

  1. Run app

Expected behavior

App is launching

Screenshots

No response

NuGet package version

No response

Windows app type

  • UWP
  • Win32

Device form factor

Desktop

Windows version

Windows Insider Build (xxxxx)

Additional context

No response

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ojhadcommented, Mar 23, 2022

@JanRajnoha Here are some instructions on how you can collect a crash dump: https://github.com/microsoft/microsoft-ui-xaml/blob/main/docs/debugging_crashes.md

0reactions
dannyr-gitcommented, Mar 13, 2023

@dannyr-git good luck, it’s a nightmare to debug this. For me it was because I was using WebView2 which was broken in unpackaged apps since you couldn’t configure the user data directory (there might be a workaround for that now), but I didn’t see any reference to that in your app

Haha, yes I had to debug quite a few ‘broken for unpackaged’ things so far myself. things like ApplicationData are only available for packaged, etc.

But this is different. This app will work on the box I wrote it on, but no one else’s. I’m pretty sure it is because the actual SDK is installed and not just the runtime environment for Windows Apps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio won't run my app on windows if the project is ...
I am currently trying to build and deploy the windows version on debug mode. My project is stored on an external server (disk...
Read more >
Windows Store opening when I'm try to run an app
Choose Apps. Choose Apps & features from the left pane. Under the “Installing apps“, expand the drop-down menu. Choose “Allow apps from ...
Read more >
Visual Studio Code App wont run from Applications folder
Right-click Visual Studio code, in the download folder, and select 'Open'. If you're prompted by Gatekeeper, open the application.
Read more >
How to Fix the "This App Can't Run on Your PC" Error in ...
1. Check the App's Version · 2. Run the App in Compatibility Mode · 3. Run the App With Administrative Rights · 4....
Read more >
Cannot run when setup is in progress upon launching ...
When launching VS, have the error message “Cannot run when setup is in progress”, normally this indicate you are installing/updating, before ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found