asp.net - 出现错误 "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding."

标签 asp.net sql iis

我的网站在 IIS 下正确运行。但工作时间长了之后。它开始给出超时错误,似乎正忙于做其他工作。但 SQL 服务器正在我的本地主机中运行,除了当前应用程序之外,没有服务器使用/负载。

“超时已过。操作完成前超时时间已过或服务器未响应。”

只有系统重新启动后我才能恢复我的工作。在这方面需要帮助。提前致谢

最佳答案

听起来您遇到了执行超时。如果达到此阈值,您可能需要进行一些分析以查看某处是否存在性能瓶颈。要解决此问题,您可以在 web.config 中指定执行超时:

<httpRuntime executionTimeout="180" /> <!-- in seconds -->

要更改 SQL Server 中的执行超时,请转到服务器属性:

http://img197.imageshack.us/img197/3152/srvrprops.png

请参阅此处了解更多详细信息:
Changing the CommandTimeout in SQL Management studio

关于asp.net - 出现错误 "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10482775/

相关文章:

asp.net-mvc - 是否需要特定的 IIS 配置才能允许 .Net 4.0 ASP.Net MVC 2 Azure 应用程序正常运行?

html - 如何将带有标签的复选框放在一行中

asp.net - 何时使用共享变量

mysql - 如何修复 SQL 错误 1064?

mysql - SQL If 语句/select into 存储过程

PHP 7 返回 500 服务器错误。不报告任何错误

c# - asp.net 4.6 MVC 5 的 future

asp.net - WebResource.axd 空白或未找到

java - 如何从 Java 锁定数据库记录?

php - laravel 应用中调用 index.php 报错 500(Windows 环境)