Sybase -- SQL Anywhere C# 连接问题
“/sybase”应用程序中的服务器错误。--------------------------------------------------------------------------------
Cannot allocate more connections. Connection pool is at maximum. Increase Max Pool Size
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: Sybase.Data.AseClient.AseException: Cannot allocate more connections. Connection pool is at maximum. Increase Max Pool Size
代码
using Sybase.Data.AseClient;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
AseConnection conn = new AseConnection("Data Source='192.168.1.130';Port=2638;UID='cxz';PWD='123';Database='demo';");
AseCommand cmd = null;
AseDataReader reader = null;
//try
//{
conn.Open();
cmd = new AseCommand("SELECT * FROM names", conn);
reader = cmd.ExecuteReader();
GridView1.DataSource = reader;
GridView1.DataBind();
//}
//catch
//{
//}
}
}
--------------------编程问答-------------------- Sybase.Data.AseClient.AseException:无法分配更多的连接。连接池是最大的。增加最大池大小 --------------------编程问答--------------------
那我要怎么设置呢?谢谢了! --------------------编程问答-------------------- 高手请进啊。。。
补充:.NET技术 , C#