简体   繁体   English

C#.net和SQL Server项目中的超时过期异常

[英]Timeout expired exception in c#.net and sql server project

Timeout expired. 超时时间已到。 The timeout period elapsed prior to completion of the operation or the server is not responding. 在操作完成之前超时或服务器没有响应。

I am getting this error in my project. 我的项目中出现此错误。 Project is working fine for more than 2 years without this error. 该项目正常运行2年以上,没有出现此错误。 Now i am getting this error frequently . 现在我经常遇到这个错误。

What could be the reason for this? 这可能是什么原因? I have closed each and every opened connection. 我已经关闭了每个打开的连接。 Is there any setting in SQL Server 2005 to avoid this issue? SQL Server 2005中是否有任何设置可以避免此问题? Or this problem is caused by network availability? 还是此问题是由网络可用性引起的?

It could be due to network availability, but I had this problem some month ago. 这可能是由于网络可用性造成的,但是一个月前我遇到了这个问题。 In my case TCP/TP and share memory setting had changed in SQL Server Configuration Management. 在我的情况下,SQL Server配置管理中的TCP / TP和共享内存设置已更改。 Please check your SQL Server Configuration Management settings. 请检查您的SQL Server配置管理设置。

Today i have faced the same issue. 今天,我面临着同样的问题。 So i collected all the logs. 所以我收集了所有日志。

In sql logs i got this error : 在SQL日志中,我得到了这个错误:

"Autogrow of file 'SSPB_log' in database 'SSPB' was cancelled by user or timed out after 30124 milliseconds. Use ALTER DATABASE to set a smaller FILEGROWTH value for this file or to explicitly set a new file size." “数据库'SSPB'中文件'SSPB_log'的自动增长已被用户取消或在30124毫秒后超时。使用ALTER DATABASE为此文件设置较小的FILEGROWTH值或明确设置新的文件大小。”

In my application logs I got this: 在我的应用程序日志中,我得到了:

"Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding." “超时到期。在操作完成之前超时时间已过,或者服务器没有响应。”

Does this errors related to each other?? 这些错误是否相互关联?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM