Server Error in '/' Application.

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

Source Error:


Line 47:             Dim ad As SqlClient.SqlDataAdapter
Line 48:             Dim pm As SqlClient.SqlParameter
Line 49:             myConnection.Open()
Line 50:             cm = New SqlClient.SqlCommand
Line 51:             cm.Connection = myConnection

Source File: d:\Domains\ma-enviro.co.uk\wwwroot\App_Code\Cart.vb    Line: 49

Stack Trace:


[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.]
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +1261381
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
   System.Data.SqlClient.SqlConnection.Open() +111
   ShoppingCart.Cart.GetTotals(String userid) in d:\Domains\ma-enviro.co.uk\wwwroot\App_Code\Cart.vb:49
   ASP.maenviro_master.RefreshCart() in d:\Domains\ma-enviro.co.uk\wwwroot\maenviro.master:30
   ASP.maenviro_master.page_load() in d:\Domains\ma-enviro.co.uk\wwwroot\maenviro.master:10
   System.Web.Util.CalliHelper.ArglessFunctionCaller(IntPtr fp, Object o) +5
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +858603
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433