我的网站在 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/