Results 1 to 4 of 4

Thread: Getting the error when I call webBrowser.Navigate method on my windows phone

  1. #1
    Join Date
    Sep 2010
    Posts
    77

    Getting the error when I call webBrowser.Navigate method on my windows phone

    Hi,
    I am using windows Phone 7 and on my phones browser i am getting the error message when i am trying to call the webBrowser.Navigate method. These indicate that the browser is not getting loaded in the visual tree. I have tried to do as many things as i can, but not able to solve this issue. Can you suggest me some method so that i can solve it out. Please do provide me the fix as i am waiting for your reply. Thanks.

  2. #2
    Join Date
    May 2008
    Posts
    678

    Make the use of the handler or the WebBrowser.Source property

    Visual tree is setup is indicated by the FrameworkElement.Loaded event. Until the visual tree is set up the browser engine does not get created. Due to this reason you are not able to give the call to any of the WebBrowser methods. I will recommend you to-
    -Make the use of the handler on Page.Loaded or WebBrowser.Loaded.
    -After that you can call Navigate ().
    Or
    -Go to the WebBrowser.Source property on your browser.
    -Here you can set the property which you want.
    Try this out and see what you get.
    Last edited by need Tos; 27-10-2010 at 08:59 AM.

  3. #3
    Join Date
    Dec 2007
    Posts
    1,599

    solved the problem using handler on Page.Loaded

    I was also getting the same error message in my windows phone 7 browsers. I have tried to make the use of the handler on Page.Loaded. My problem was being solved. This solution was provided by the need Tos so i would like to give my thanks to you for providing such a nice solution. I have even tried to set the WebBrowser.Source property and even it is solving the problem.

  4. #4
    Join Date
    Jun 2006
    Posts
    623

    Try dropping the WebBrowser straight into Page1

    I have a solution for this problem, because few days ago i was also facing the same problem on my phone and tried many solutions, but at the end was able to solve it out. The same solution i am providing to you. You can try dropping the WebBrowser straight into Page1. After doing this you problem will get solved out. I hope that this will help you in solving the issue. I you require more support on this topic, then reply me back.

Similar Threads

  1. Windows Phone 8 screen stops working during phone call
    By MEKHALA in forum Portable Devices
    Replies: 1
    Last Post: 01-08-2013, 01:21 PM
  2. Replies: 6
    Last Post: 06-11-2011, 11:48 PM
  3. How to get the Chinese input method for Windows Phone 7?
    By TheRuler in forum Portable Devices
    Replies: 7
    Last Post: 01-09-2011, 07:36 AM
  4. Is it possible to call destroy() method within init() Method?
    By Level8 in forum Software Development
    Replies: 3
    Last Post: 10-12-2009, 08:36 AM
  5. Java: How can I call one method in another method?
    By biohazard 76 in forum Software Development
    Replies: 3
    Last Post: 16-07-2009, 07:12 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,654,110.30123 seconds with 17 queries