Apr 05 2022 01:39 PM
I posted about this over at WinUI 3 App Runs on Development Machine, Crashes Elsewhere - Microsoft Q&A before stumbling across this forum.
I won't repeat all of what I wrote over there. Bottom-line, it looks like when the MSIX was created it failed to include System.Text.Encodings.Web.dll. At least, the app crashes on a test machine (not my development machine) and, under WinDbg, it appears like the culprit is that dll.
Is there a way to examine what's in an MSIX file? How do I get the missing file, assuming it is missing, to be included in the package? If that's not the problem how else do I go about debugging this?
Apr 20 2022 03:35 AM
Apr 20 2022 07:01 AM
Thanx for the reply. After posting this I learned about the Packaging Tool and was able to confirm the DLL was included in the MSIX. Turns out the problem had to do with an exception being thrown within an exception handler I'd written for my logging subsystem. Apparently that was deep enough that it just blew away the app when it occurred, leaving a trail of "off topic" and unhelpful messages (like System.Text.Encodings.Web being missing).
Apr 20 2022 11:38 AM