“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

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you will learn about sync provider notifications in Windows 11 and how to disable or enable it...
In this tutorial, let’s learn how to enable or disable the startup sound in Windows 11. By default, when Windows...
The CameraCaptureTask allows the Windows Phone 7 App to launch the Camera Application . This will be useful when the...