我的网站还没有访问几次就出现以下问题,怎么回事
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.

解决方案 »

  1.   

    把OPEN的用完都CLOSE掉呢,LZ试下
      

  2.   

    这是由于连接打开后没有关闭引起的. 
    数据返回一个SqlDataReader时.常常会引起这样的问题...
    可以用using(SqlConnection con)
    {
          //,....
    }
     不过这不是最终解决的办法.
    就好的就是在你用完了SqlDataReader时.就要把连接放回去..
      

  3.   

    设置web.config中的连接字符串,给它另外分配个连接池,如:<add key="ConnectionString" value="server=chenhaoying;Enlist=true;Pooling=true;Max Pool Size=300;Min Pool Size=0;Connection Lifetime=300;packet size=1000; DataBase=cqitdb; user id=sa;pwd=123456; "/>
      

  4.   

    sqlconnection 用完了没关
    光打开了,哈哈
      

  5.   

    连接用完了,每个数据库连接用完了,dispose一次,就好了
      

  6.   

    肯定是有datareader没有关!!!!仔细检查