当前位置: 代码迷 >> ASP.NET >> sos!菜鸟有关问题
  详细解决方案

sos!菜鸟有关问题

热度:7599   发布时间:2013-02-25 00:00:00.0
sos!菜鸟问题
Server   Error   in   '/ '   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   27:  
Line   28:                         SqlConnection   con   =   new   SqlConnection(ConfigurationSettings.AppSettings[ "Str_sql "]);
Line   29:                         con.Open();
Line   30:                         SqlDataAdapter   sda   =   new   SqlDataAdapter( "select   *   from   business   where   business_id= ' "   +   Business_id   +   " ' ",   con);
Line   31:  
 

Source   File:   e:\wwwroot\wwwroot\invite\sanji.aspx.cs         Line:   29  

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)   +1184425
      System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection   outerConnection,   DbConnectionFactory   connectionFactory)   +105
      System.Data.SqlClient.SqlConnection.Open()   +111
      invite_sanji.Page_Load(Object   sender,   EventArgs   e)   in   e:\wwwroot\wwwroot\invite\sanji.aspx.cs:29
      System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr   fp,   Object   o,   Object   t,   EventArgs   e)   +15
      System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object   sender,   EventArgs   e)   +34
      System.Web.UI.Control.OnLoad(EventArgs   e)   +99
      System.Web.UI.Control.LoadRecursive()   +47
  相关解决方案