C
C#5mo ago
felpsey

WinUI3 project will not launch when packaged with Windows Application Packaging Project

I am losing my mind with WinUI3 and packaging the app without distributing to the Microsoft Store, why is it so difficult to distribute a WinUI3 app? Project structure: - App1 (Blanck App, Packaged (WinUI 3 in DesktOP) - WapProjTemplate1 (Windows Application Packaging Project) Steps to reproduce issue: - Add App1 as an Application depedency in WajProTemplate1 - Build solution - WapProjTemplate1 > Publish > Create App Packages - Go to MSIX bundle, run PowerShell script to install dependencies and app - Open installed app - App crashes
3 Replies
felpsey
felpseyOP5mo ago
Errors:

Faulting application name: App1.exe, version: 1.0.0.0, time stamp: 0x666b0000
Faulting module name: Microsoft.ui.xaml.dll, version: 3.1.5.0, time stamp: 0xf1a6b27f
Exception code: 0xc000027b
Fault offset: 0x000000000000a1e8
Faulting process id: 0x0x2A84
Faulting application start time: 0x0x1DAD6349CAE93B5
Faulting application path: C:\Program Files\WindowsApps\8ae0097e-3d57-4f3e-955f-559481155dc2_1.0.0.0_arm64__19z7jhabxbw7j\App1.exe
Faulting module path: C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.5_5001.178.1908.0_arm64__8wekyb3d8bbwe\Microsoft.ui.xaml.dll
Report Id: 58fe602b-3b6f-43b5-aa3c-c5ac538ad4d1
Faulting package full name: 8ae0097e-3d57-4f3e-955f-559481155dc2_1.0.0.0_arm64__19z7jhabxbw7j
Faulting package-relative application ID: App
Errors:

Faulting application name: App1.exe, version: 1.0.0.0, time stamp: 0x666b0000
Faulting module name: Microsoft.ui.xaml.dll, version: 3.1.5.0, time stamp: 0xf1a6b27f
Exception code: 0xc000027b
Fault offset: 0x000000000000a1e8
Faulting process id: 0x0x2A84
Faulting application start time: 0x0x1DAD6349CAE93B5
Faulting application path: C:\Program Files\WindowsApps\8ae0097e-3d57-4f3e-955f-559481155dc2_1.0.0.0_arm64__19z7jhabxbw7j\App1.exe
Faulting module path: C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.5_5001.178.1908.0_arm64__8wekyb3d8bbwe\Microsoft.ui.xaml.dll
Report Id: 58fe602b-3b6f-43b5-aa3c-c5ac538ad4d1
Faulting package full name: 8ae0097e-3d57-4f3e-955f-559481155dc2_1.0.0.0_arm64__19z7jhabxbw7j
Faulting package-relative application ID: App
Fault bucket 2088813869366436123, type 5
Event Name: MoAppCrash
Response: Not available
Cab Id: 0

Problem signature:
P1: 8ae0097e-3d57-4f3e-955f-559481155dc2_1.0.0.0_arm64__19z7jhabxbw7j
P2: praid:App
P3: 1.0.0.0
P4: 666b0000
P5: StackHash12_b40
P6: 0.0.0.0
P7: 00000000
P8: 80004005
P9: 0
P10:

Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.e3cdc474-6cb3-4479-ac09-e8af0a817626.tmp.dmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.19345621-6977-4b11-b0d7-c8759e5b64a9.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.9fcc5c86-f978-4795-a4ad-0ee4dcce0977.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.b5eca475-5214-47f4-af4e-71dec119a191.tmp.txt
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.efa5b761-5e98-4f8c-87d4-f586c9fa5d49.tmp.xml

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_8ae0097e-3d57-4f_eeb41a1b716938bc29c6e547d8ef578929ac7a_4cca7a47_3b81e9f7-b4a3-4d16-b4c6-14c6c6182289

Analysis symbol:
Rechecking for solution: 0
Report Id: 5987f19a-9fe7-44ef-8f8f-2d9d07f3b075
Report Status: 268435456
Hashed bucket: dd8c6b8d07e54d755cfcf525ad7ee11b
Cab Guid: 0
Fault bucket 2088813869366436123, type 5
Event Name: MoAppCrash
Response: Not available
Cab Id: 0

Problem signature:
P1: 8ae0097e-3d57-4f3e-955f-559481155dc2_1.0.0.0_arm64__19z7jhabxbw7j
P2: praid:App
P3: 1.0.0.0
P4: 666b0000
P5: StackHash12_b40
P6: 0.0.0.0
P7: 00000000
P8: 80004005
P9: 0
P10:

Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.e3cdc474-6cb3-4479-ac09-e8af0a817626.tmp.dmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.19345621-6977-4b11-b0d7-c8759e5b64a9.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.9fcc5c86-f978-4795-a4ad-0ee4dcce0977.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.b5eca475-5214-47f4-af4e-71dec119a191.tmp.txt
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.efa5b761-5e98-4f8c-87d4-f586c9fa5d49.tmp.xml

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_8ae0097e-3d57-4f_eeb41a1b716938bc29c6e547d8ef578929ac7a_4cca7a47_3b81e9f7-b4a3-4d16-b4c6-14c6c6182289

Analysis symbol:
Rechecking for solution: 0
Report Id: 5987f19a-9fe7-44ef-8f8f-2d9d07f3b075
Report Status: 268435456
Hashed bucket: dd8c6b8d07e54d755cfcf525ad7ee11b
Cab Guid: 0
felpsey
felpseyOP5mo ago
Package a desktop app from source code using Visual Studio - MSIX
This guide explains how to configure your Visual Studio Solution to edit, debug, and package a desktop application.
ACiDCA7
ACiDCA75mo ago
are you using r2r or singlefile option?
Want results from more Discord servers?
Add your server