系统提示:
在从池中获取连接之前超时时间已过。出现这种情况可能是因为所有池连接都已被使用并已达到最大池大小。
看来是你打开的connection都没去关闭你在函数结尾都加上
if(conn.State == ConnectionState.Open)
{
conn.Close();
}

解决方案 »

  1.   

    我只要不是使用SQLDATAREADER的我都将连接断开。conn.close()。弄不明白
      

  2.   

    possibly,you could deploy your connection string with "min pool size=1" when debugging,
    because you build,the moment your min pool size is not rather less,it will create
    so mang connection,certainly your server will down.
    do not forget,in line,you can deploy it with your right pool size.
    good luck