Search code examples
c#windows-phone-8.1windows-phonesilverlight-5.0windows-phone-8-emulator

Windows Phone app crash on device


I make installed app on windows phone which crash but when I run in windows emulator it did not crash

I have button where I load page which have browser and I try to load there

  • Code for button click

    private void Button_Click(object sender, RoutedEventArgs e)
    {
        QueryString queryString = new QueryString { Parameter = "http://www.example.com/en/about" };
        App.RootFrame.Navigate(typeof(WebViewPage), queryString); 
    }
    
  • onNavigatedTo of other Page

    protected override void OnNavigatedTo(NavigationEventArgs e)
    {
        QueryString param = e.Parameter as QueryString;
        Uri uri = new Uri(param.Parameter,UriKind.Absolute);
        webView.Navigate(uri);
    }
    

Not only it is happening with webview but also it is also happening with ListFlyOut control.

I don't know what is the issue but it is crashing on the device.


Solution

  • I just reset my Windows Phone and install again my app, voila all start working. With much better performance.