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 84: 		    		<div id="menuh-container">
Line 85: 						<div id="menuh">
Line 86:                             @iStarHelper.DeptLister(ulDeptClass: "wide", ShowAllDept: true, ShowActiveClass: false, ShowAllClass: true, ShowActiveSubclass: false, ShowAllSubclass: true)				
Line 87: 					    </div>
Line 88: 					</div>			

Source File: c:\inetpub\wwwroot\Shared\_Layout.cshtml    Line: 86

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() +629
   WebMatrix.Data.Database.EnsureConnectionOpen() +46
   WebMatrix.Data.<QueryInternal>d__0.MoveNext() +67
   System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +121
   WebMatrix.Data.Database.QuerySingle(String commandText, Object[] args) +98
   ASP.iStar.GetClass(String DeptCode, String ClassCode) +766
   ASP.iStar.GetSubclasses(String DeptCode, String ClassCode, String SortField) +514
   ASP.<>c__DisplayClass4f.<SubclassLister>b__4e(TextWriter __razor_helper_writer) +747
   System.Web.WebPages.HelperResult.WriteTo(TextWriter writer) +10
   CallSite.Target(Closure , CallSite , Type , TextWriter , Object ) +205
   ASP.<>c__DisplayClass3a.<ClassLister>b__39(TextWriter __razor_helper_writer) +10390
   System.Web.WebPages.HelperResult.WriteTo(TextWriter writer) +10
   CallSite.Target(Closure , CallSite , Type , TextWriter , Object ) +205
   ASP.<>c__DisplayClass1c.<DeptLister>b__1b(TextWriter __razor_helper_writer) +10612
   System.Web.WebPages.HelperResult.WriteTo(TextWriter writer) +10
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +80
   ASP._Page_Shared__Layout_cshtml.Execute() in c:\inetpub\wwwroot\Shared\_Layout.cshtml:86
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +197
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +69
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +131
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +90
   System.Web.WebPages.<>c__DisplayClass7.<RenderPageCore>b__6(TextWriter writer) +231
   System.Web.WebPages.HelperResult.WriteTo(TextWriter writer) +10
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +80
   System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +64
   System.Web.WebPages.WebPageBase.PopContext() +263
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +98
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +116


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