Posted on: 7/15/2014 2:32:55 PM | Views : 443

I  a beginner on ASP.NET and I keep getting this error when pressing my command button "Error: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."
I don't know how to resolve it.
Here's My code. Th error message does mention "InsertControlScreen.aspx.cs:line 53"
static Random random = new Random(); protected void Button1_Click(object sender, EventArgs e) { try { Label4.Text = "Insert State";
int i = 0; int sum = (Convert.ToUInt16(TextBox1.Text));
DateTime start = DateTime.Now;
TextBox2.Text = start.ToLongTimeString();
SqlConnection conn = new SqlConnection(ConfigurationManager.Connecti ...

Go to the complete details ...