救命啊,大哥帮忙看看,这是什么错误,怎样解决,分不够还可以给呀。
Server Error in '/xxx' Application.
--------------------------------------------------------------------------------Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.Source Error:
Line 189:<%
Line 190: SqlText = "select * from SYS_MODULE_ADMIN order by ID asc";
Line 191: System.Data.SqlClient.SqlDataReader dr = GetResult(SqlText);
Line 192: if (dr.Read())
Line 193: {
Source File: e:\BuilHall\View\View.aspx Line: 191 Stack Trace:
[InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.]
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +1188873
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
View_View.GetResult(String SQL) +56
ASP.view_view_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in e:\BuilHall\View\View.aspx:191
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +2113547
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
System.Web.UI.Page.Render(HtmlTextWriter writer) +26
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896
Server Error in '/xxx' Application.
--------------------------------------------------------------------------------Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.Source Error:
Line 189:<%
Line 190: SqlText = "select * from SYS_MODULE_ADMIN order by ID asc";
Line 191: System.Data.SqlClient.SqlDataReader dr = GetResult(SqlText);
Line 192: if (dr.Read())
Line 193: {
Source File: e:\BuilHall\View\View.aspx Line: 191 Stack Trace:
[InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.]
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +1188873
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
View_View.GetResult(String SQL) +56
ASP.view_view_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in e:\BuilHall\View\View.aspx:191
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +2113547
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
System.Web.UI.Page.Render(HtmlTextWriter writer) +26
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896
解决方案 »
- 【诚心求教,谢谢】rss 有朋友做过吗?麻烦给人性化的解释下。。。谢谢
- 关于省市联动的问题
- vs2005开发网站时,连接数据库时出错,请指点,急!
- 我如何用正则表达式匹配<span>与</span>之间的内容?谢谢!!!
- datalist 中包含一个 Repeater 但是为什么我findcontrol 之后 给Repeater1 绑定 数据源 之后没有显示啊``
- C#中取模的运算符是哪一个阿?
- 如何在ArrayList中显示数据库中值?
- 有没有办法让asp.net弹出一个新窗口。是不是有这种方法。
- 请教这是什么原因?
- 模糊查询怎么只找到 英文 字段值??如何查询中文?
- 求:如何在GRIDVIEW中点击”更新“按钮时 弹出“修改“成功的 提示框 代码
- |M| 为什么我的VSS 把服务器的文件Get Latest version的时候只能get到他目录下的文件,而目录下的目录没办法get下来
好象是代码里有没有关闭的连接,检查一下
{ SqlConnection myConnection = DataService.GetConnection();
SqlCommand myCommand = new SqlCommand(SQL, myConnection);
myCommand.CommandType = CommandType.Text;
myConnection.Open();
SqlDataReader dr = myCommand.ExecuteReader(CommandBehavior.CloseConnection);
return dr;
}
...
rdr.close();
...
cdr.close();