String strcon = @"server=localhost;user id=root;password=root;database=mdagree;persistsecurityinfo=True;Connect Timeout=500";
con = new MySqlConnection(strcon);
if (con.State == ConnectionState.Open)
Quote:" 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.; "
cmd.CommandTimeout = 900
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)