运行asp.net网站时出错 [英] An error while running asp.net website

查看:102
本文介绍了运行asp.net网站时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是yogesh,当我运行我的网站时,我在不规则的时间段内在使用datareader的代码行上出错,即...在以下
线..

Hi I am yogesh and when i am running my website iam getting an error at irregular period of time at the line of code where i used datareader i;e.... at the following
line..

SqlDataReader drtot = chktot.ExecuteReader();


错误是:
超时到期.在操作完成之前超时时间已过,或者服务器没有响应."
请向我建议解决方案.


Error is :
"Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding."
Please suggest me the solution.

推荐答案

确保服务器已启动并正在运行,并且可以连接到数据库.
然后确保网络也正常运行.

也许您的查询执行时间太长或返回的记录集太大.
尝试完善您的查询.

不推荐-尝试增加超时时间(在调试之前).
Make sure the server is up and running and that you can connect to the database.
Then make sure the network is up as well.

Maybe your query is taking too long to execute or is returning too large a record set.
Try refining your query.

Not recommended - Try increasing the timeout (before debugging purposes).


要解决此问题,请检查以下内容:

http://msdn.microsoft.com/en-us/library/ms190181.aspx [ ^ ]

希望对您有所帮助:)
To fix it,check this out:

http://msdn.microsoft.com/en-us/library/ms190181.aspx[^]

hope it helps :)


这篇关于运行asp.net网站时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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