Server Error in '/web' 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 363: // Create and fill a DataSet.
Line 364: DataSet ds = new DataSet();
Line 365: objAdapter.Fill(ds,"M_CATEGORY_S");
Line 366:
Line 367: DataList1.DataSource = ds.Tables["M_CATEGORY_S"];
[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.SqlClient.SqlConnection.Open() +761
System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +44
System.Data.Common.DbDataAdapter.Fill(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +98
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +36
New_skt.WebForm1.Set_Cate() in C:\Inetpub\wwwroot\S_web\page1.aspx.cs:365
New_skt.WebForm1.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\S_web\page1.aspx.cs:210
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +29
System.Web.UI.Page.ProcessRequestMain() +724
첫댓글 일단 의심나는 건 connection을 close 및 dispose 를 꼭 해줘야 한다는 것이구여 물론 .net pool 오바로링을 하지만 꼭 close 혹은 dispose를 해주는게 좋습니다.