Server Error in '/' Application.

error connecting: 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.

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: MySql.Data.MySqlClient.MySqlException: error connecting: 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.

Source Error:


Line 113:            BrandCode = ProductDetail.BrandCode;
Line 114:
Line 115:            DCS = iStar.GetDCS(DeptCode, ClassCode, SubclassCode);
Line 116:            if(DCS != null && DCS.Layout != null) {
Line 117:                PDLayout = DCS.Layout;

Source File: c:\inetpub\wwwroot\_PageStart.cshtml    Line: 115

Stack Trace:


[MySqlException (0x80004005): error connecting: 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.]
   MySql.Data.MySqlClient.MySqlPool.GetConnection() +208
   MySql.Data.MySqlClient.MySqlConnection.Open() +631
   WebMatrix.Data.Database.EnsureConnectionOpen() +46
   WebMatrix.Data.<QueryInternal>d__0.MoveNext() +67
   System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +168
   WebMatrix.Data.Database.QuerySingle(String commandText, Object[] args) +98
   ASP.iStar.Single(String SQLSelect, String Token) +634
   ASP.iStar.GetSubclass(String DeptCode, String ClassCode, String SubclassCode) +909
   ASP.iStar.GetDCS(String DeptCode, String ClassCode, String SubclassCode) +16
   ASP._Page__PageStart_cshtml.Execute() in c:\inetpub\wwwroot\_PageStart.cshtml:115
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +46
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +116


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