none
Make a web browser control stable RRS feed

  • Question

  • Hello

    I’m using a web browser control in my custom task pane, the browser shows a dynamic site, it refreshing/updating continuously, an Ajax call in the site blocks entire outlook.

    It’s a web request (with long pooling at server), I can’t say when it give a responds, if I get a responds, save and suddenly call it again. At these times my outlook will stuck.

    I hope you guys will give me a solution

    Thanks

    Jenus M


    • Edited by mjs_123 Saturday, November 15, 2014 8:20 AM
    Saturday, November 15, 2014 7:38 AM

All replies

  • Hello Jenus,

    Are you able to reproduce the issue with a windows form application?


    It seems the issue is not related to Outlook.
    Saturday, November 15, 2014 12:24 PM
  • Hi,

    >>It’s a web request (with long pooling at server), I can’t say when it give a responds, if I get a responds, save and suddenly call it again. At these times my outlook will stuck<<

    What do you mean Outlook will stuck? I failed to reproduce the issue, here are my test:
    1. create an web application

    2. create an web page that give response after 5 seconds with code below:

     protected void Page_Load(object sender, EventArgs e)
            {
                DateTime beginTime = DateTime.Now;
                while (true)
                {
                    if (DateTime.Now.CompareTo(beginTime.AddSeconds(5)) > 0)
                        return;
                }
            }
        }

    3. create an task pane which contains an web browser control, and a textbox to type web address and a button to navigate to the address:

      private void ButtonGo_Click(object sender, EventArgs e)
            {
                Navigate(TextBoxAddress.Text);
            }
    
            // Navigates to the given URL if it is valid.
            private void Navigate(String address)
            {
                if (String.IsNullOrEmpty(address)) return;
                if (address.Equals("about:blank")) return;
                if (!address.StartsWith("http://") &&
                    !address.StartsWith("https://"))
                {
                    address = "http://" + address;
                }
                try
                {
                    webBrowser1.Navigate(new Uri(address));
                }
                catch (System.UriFormatException)
                {
                    return;
                }
            }
    
        }

    4. After I click the button to navigate to the website, the Outlook application works well for me. I am testing in Outlook 2013, did I miss any step?

    Regards & Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, November 17, 2014 6:52 AM
    Moderator