How to fix 'Cannot locate resource from 'ms-appx:///GuidePage.xaml' and Microsoft C++ exception: winrt::hresult_error at memory location 0x000000716B1D8A78. error .

Vivek Rao 20 Reputation points
2023-07-24T04:59:16.91+00:00

When I am trying to add Window runtime component ( .dll ) to my blank app packaged Winui3 (.exe) file I am facing an issue. So, I have added a page in my window runtime component that is guidepage.xaml and I have added a reference to my exe file and it is building correctly. But Whenever I am navigating to my dll on that guidepage.xaml I am facing below issue:

Exception thrown at 0x00007FFD4D33CF19 (KernelBase.dll) in Reveal.exe: WinRT originate error - 0x80004005 : 'Cannot locate resource from 'ms-appx:///GuidePage.xaml'.'.

Microsoft.UI.Xaml.dll!00007FFC86204854: CallContext:[\ImageDecodeActivity\ImageDecodeActivity\ImageDecodeActivity\ImageDecodeActivity\ImageDecodeActivity] 80004005 - Unspecified error

Exception thrown at 0x00007FFD4D33CF19 in Reveal.exe: Microsoft C++ exception: winrt::hresult_error at memory location 0x000000716B1D8A78.

Any pointer on this, would be appreciated.

Windows development | Windows App SDK
Developer technologies | C++
Developer technologies | XAML
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.