Click here to Skip to main content
15,921,336 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I am working on a asp.net application which run on Internet Explorer 9. I'm forming 3-4 MDX queries (ssas cubes) and running in my webpage. Query response time varies based on data and server load.

My problem is when the page response is taking more than 60 seconds time then page displays following error: "Internet Explorer Cannot display the WebPage". Page is not idle but each query takes around 20 seconds. When this error comes it does not even goes to any catch block.

Few blogs/post says to avoid this error I need to increase the ReceiveTimeOut registry value on IE settings. Default ReceiveTimeOut value for IE 9 on windows 7 is 60 seconds and if I increase on my system then error is not coming. But I cannot set the ReceiveTimeout property to higher value for all users, as it is a public website.

Any help/suggestion is appreciated. Any direct or indirect solution would be helpful.

Sample code:

XML
<asp:Button runat="server" ID="Test" Text="Click to test" OnClick="Test_Click" />
        <asp:Label runat="server" ID="LableTest"></asp:Label>


C#
private bool _buttonClicked = false;
        protected void Page_Load(object sender, EventArgs e)
        {
            LableTest.Text = "";
        }

        protected void Test_Click(object sender, EventArgs e)
        {
            Response.Write(DateTime.Now.ToString() + "\r\n");
            _buttonClicked = true;

            for (int i = 1; i <= 5; i++)
            {
                System.Threading.Thread.Sleep(12 * 1000);
                LableTest.Text += "Hi" + ",";
            }
        }

        protected override void OnPreRender(EventArgs e)
        {
            if (_buttonClicked)
            {
                Response.Write(DateTime.Now.ToString());
            }
        }
Posted

1 solution

Has this anything to do with your session timeout?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900