Server Error in '/' Application.

ERROR [HY000] [MySQL][ODBC 5.1 Driver]Too many connections
ERROR [HY000] [MySQL][ODBC 5.1 Driver]Too many connections

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.Odbc.OdbcException: ERROR [HY000] [MySQL][ODBC 5.1 Driver]Too many connections
ERROR [HY000] [MySQL][ODBC 5.1 Driver]Too many connections

Source Error:


Line 67:             DataTable dt = new DataTable();
Line 68:             OdbcDataAdapter da = new OdbcDataAdapter("select img_path,rank_value,height,width from page_article_dets where article_id=" + id, con);
Line 69:             da.Fill(dt);
Line 70:             img_url = dt.Rows[0]["img_path"].ToString();
Line 71:             int rankvalue = Convert.ToInt16(dt.Rows[0]["rank_value"]);

Source File: d:\DeccanChronicle\articledetailpage.aspx.cs    Line: 69

Stack Trace:


[OdbcException (0x80131937): ERROR [HY000] [MySQL][ODBC 5.1 Driver]Too many connections
ERROR [HY000] [MySQL][ODBC 5.1 Driver]Too many connections]
   System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode) +1432561
   System.Data.Odbc.OdbcConnectionOpen..ctor(OdbcConnection outerConnection, OdbcConnectionString connectionOptions) +73
   System.Data.Odbc.OdbcConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +78
   System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions) +57
   System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +1142
   System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +312
   System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +23
   System.Data.Odbc.OdbcConnection.Open() +52
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +172
   System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +453
   System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +141
   articledetailpage.Page_Load(Object sender, EventArgs e) in d:\DeccanChronicle\articledetailpage.aspx.cs:69
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3062.0