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