NavigationService and Launching Internet Explorer in Windows Phone 8

The NavigationService class is used in Windows Phone 8 App to navigate from one page to another but note that if you want to launch the external URL in Internet Explorer from the App, you cannot use the NavigationService.

You will receive the following error, if you are attempting to open the external URL using Navigation Service.

{System.ArgumentException: Navigation is only supported to relative URIs that are fragments, or begin with ‘/’, or which contain ‘;component/’.

Parameter name: uri at System.Windows.Navigation.NavigationService.Navigate(Uri source)}

In order to open the external URL from the application, the best option is to use the WebBrowserTask or WebBrowserControl within the application.

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...