Closed DavidXanatos closed 2 years ago
@StephenLPeters @ojhad @asklar Please consider assigning meaningful labels and/or a specific title to this issue.
@DavidXanatos base.h is a generated file from C++/WinRT and that is why it is not showing up in the GitHub repo and why the debugger cannot locate it. However, I don't think it would help debugging this issue very much anyway since that file mostly contains simple helper functions that are used by C++/WinRT. In this case 'check_hresult' is converting an error HRESULT to an exception. The real issue is what you see in the exception: 'Cannot locate resource from 'ms-appx:///Microsoft.UI.Xaml/Themes/21h1_themeresources.xaml'.'
How is this program consuming Microsoft.UI.Xaml? Is it coming from the framework work package or is it included in the app itself? You can check this by looking at the path to Microsoft.UI.Xaml.dll and seeing if it is inside the app package or if it is in the dedicated "Microsoft.UI.Xaml" framework package path (e.g. something like C:\Program Files\WindowsApps\Microsoft.UI.Xaml.2.7...).
If it is coming from the framework package path, make sure that the app's appxmanifest as a packagedependency on Microsoft.UI.Xaml.
hmmm... well as this file is the CredentialUIBroker.exe its located in c:\Windows\System32\ and those has no app package of its own, it is loading this one: 'C:\Windows\SystemApps\Microsoft.UI.Xaml.CBS_8wekyb3d8bbwe\Microsoft.UI.Xaml.dll'
In that case it should be loading the resources from the resources.pri that is next to M.U.X.dll in that directory. It seems like that resources.pri file is not getting loaded for some reason.
Thanks for the help, I solved the issue, for the time being its working fine :)
Hello
I'm running into a crash
When I try to debug this i get the following error message:
Apparently this BuildOutput is no longer online? Can I find the right source version some ware else?
And before you ask how I produce this crash, its CredentialUIBroker.exe running under sandboxie's supervision on windows 11 on 10 it works fine. So I have to understand what's causing the crash and find a fix without being able to change anything but sandboxie itself, fun!
It is quite strange that being sandboxed makes the process fail to locate resource, the issue is present even without most sbie isolation mechanisms being engaged, only COM virtualization is enough to break it, and I cant test without that as than the calling process talks to the real system and starts a un sandboxed CredentialUIBroker.exe
Any help/advice would be greatly appreciated.