title: Getting Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. .exception
body: <p>getting Exception </p>
  
  <p>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. </p>
  
  <p>code:</p>
  
  <pre><code> HotelDealsDataClassesDataContext hotelDealsDataContext = DatabaseHelper.GetHotelDealsDataContext();
   hotelDealsDataContext.spInsertAsyncHotelDealFeedRequestData(Utility.GetBinaryData(hotelDeal), DateTime.Now);
  </code></pre>
  
  <p>stack trace:</p>
  
  <pre><code> at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.SqlClient.SqlConnection.Open()  
   at System.Data.Linq.SqlClient.SqlConnectionManager.UseConnection(IConnectionUser user) 
   at System.Data.Linq.SqlClient.SqlProvider.get_IsSqlCe()  
   at System.Data.Linq.SqlClient.SqlProvider.InitializeProviderMode()  
   at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)    
   at System.Data.Linq.DataContext.ExecuteMethodCall(Object instance, MethodInfo methodInfo, Object[] parameters)  
   at Tavisca.TravelNxt.Deals.DataFeeders.DataAccessLayer.HotelDealsDataClassesDataContext.spInsertAsyncHotelDealFeedRequestData(Binary hotelDealData, Nullable`1 addDate)  
  </code></pre>