Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerTimeoutException:服务器请求超时。 [英] Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out.

查看:157
本文介绍了Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerTimeoutException:服务器请求超时。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下错误消息:

Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerTimeoutException:服务器请求超时。


当我从sql server获取数据时




如果您有任何建议,请建议我。

i am getting following Error message :
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out.

when i am fetching data from sql server.

Please suggest me if you have any suggestion.

推荐答案

要解决此问题,可以增加ScriptManager的PostBack超时。

To solve this problem you can increase the PostBack timeout of ScriptManager.
<asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeOut="600" >
</asp:ScriptManager>







- Amit


您可能正在搜索这。 [ ^ ]
You might be searching for this.[^]


由于您的应用程序在sql数据库查询上运行超时时所面临的问题。它需要超过默认时间才能退出。所以你需要增加ConnectionTimeout属性。



你可以用几种方式做到这一点



1. ConnectionString具有ConnectionTimeout属性。它是一个属性,用于确定代码等待连接数据库打开的最大秒数。您可以在web.config中的连接字符串部分设置连接超时。



The problem you are facing because of When your application runs into a timeout on a sql database query's. It taking more than default time to return out put. So you need to increase ConnectionTimeout property.

You can do it in several ways

1. A ConnectionString has a ConnectionTimeout property. It is a property which determines the maximum number of seconds your code will wait for a connection of the database to be open. You can set connection timeout in connection string section in web.config.

<connectionstrings>
      
<add name="ConnectionString" connectionstring="Database=UKTST1;Server=BRESAWN;uid=" system.data.sqlclient="/><br mode=" hold=" /><br mode=" html="> <asp:ToolkitScriptManager runat=" server=" AsyncPostBackTimeOut=" 6000="><br mode="></add></connectionstrings>





2.您可以在.aspx页面中添加AsyncPostBackTimeout =6000





2. You can put AsyncPostBackTimeout="6000" in .aspx page

<asp:ToolkitScriptManager runat="server"; AsyncPostBackTimeOut="6000";
   </asp:ToolkitScriptManager>





3.您可以在sqlcommand中设置超时你在.cs文件中调用storeprocedure。





3. You can set timeout in sqlcommand where you are calling storeprocedure in .cs file.

command.CommandTimeout = 30*1000;





希望你有解决方案。



hope you have got solution.


这篇关于Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerTimeoutException:服务器请求超时。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆