问题描述
我正在使用在Internet Explorer 9上运行的asp.net应用程序。我正在形成3-4个MDX查询(ssas多维数据集)并在我的网页上运行。查询响应时间因数据和服务器负载而异。
我的问题是当页面响应时间超过60秒时页面显示错误: Internet Explorer无法显示WebPage 。页面不是空闲的,但每个查询大约需要20秒。当出现这个错误时,它甚至不会进入任何阻塞区。
很少有博客/帖子说要避免这个错误我需要增加 ReceiveTimeOut IE设置的注册表值。 Windows 7上IE 9的默认ReceiveTimeOut值为60秒,如果我在系统上增加,则错误不会到来。但我不能将所有用户的ReceiveTimeout属性设置为更高的值,因为它是一个公共网站。
任何帮助/建议都表示赞赏。任何直接或间接的解决方案都会有所帮助。
示例代码:
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:
<asp:Button runat="server" ID="Test" Text="Click to test" OnClick="Test_Click" />
<asp:Label runat="server" ID="LableTest"></asp:Label>
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());
}
}
推荐答案
这篇关于Internet Explorer无法显示WebPage - ReceiveTimeOut的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!