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 23: 		{
Line 24: 			oSQLConn = new SqlConnection(ConfigurationSettings.AppSettings["sqlConnString"].ToString());
Line 25: 			oSQLConn.Open();
Line 26: 			return oSQLConn;
Line 27: 		}

Source File: d:\ylt\App_Code\Dec8_CM_DB\DB.cs    Line: 25

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) +1188873
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
   System.Data.SqlClient.SqlConnection.Open() +111
   Dec8_CM_DB.db.GetSQLConnection() in d:\ylt\App_Code\Dec8_CM_DB\DB.cs:25
   Dec8_CM_DB.db.ReturnDataSetFromSP(String spName) in d:\ylt\App_Code\Dec8_CM_DB\DB.cs:49
   Dec8_Mod_YLT.YLT_Category.GetAllCategoriesDs() in d:\ylt\App_Code\Dec8_Mod_YLT\category.cs:108
   GlobalCode.Application_BeginRequest(Object sender, EventArgs e) in d:\ylt\App_Code\Global.asax.cs:56
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


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