HomeWindows“Navigation is only supported to relative URIs that are fragments” Error in Windows Phone App

“Navigation is only supported to relative URIs that are fragments” Error in Windows Phone App

Getting the below error when running your Windows Phone App?

“Navigation is only supported to relative URIs that are fragments, or begin with ‘/’, or which contain ‘;component/’.rnParameter name: uri”

"Navigation is only supported to relative URIs that are fragments" Error in Windows Phone App

The solution to this error is pretty simple. Make sure that the Path used in the generation of the Uri is correct.

For example, you might be using the NavigateUri property. So while generating the Uri, you could have missed the “/” as described.

Uri path = new Uri ("MainPage1.xaml",UriKind.RelativeOrAbsolute);

This could be altered to includes /MainPage1.xaml instead of MainPage1.xaml

Uri path = new Uri ("/MainPage1.xaml",UriKind.RelativeOrAbsolute);

Leave a Reply

You May Also Like

This blog post will guide you through several effective methods to troubleshoot and resolve the issue of Microsoft Edge not...
Windows 11 offers a range of audio enhancements that can enrich your listening experience. These enhancements include features like virtual...
Windows 11 brings a fresh and visually stunning design to your desktop, and one of the standout features is the...