“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’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...