超时时间已到。超时时间已到,但是尚未从池中获取连接。出现这种情况可能是因为所有池连接均在使用,并且达到了最大池大小。

  • 时间:
  • 浏览:0

[InvalidOperationException: 超时时间已到。超时时间已到,已经



尚未从池中获取连接。冒出你这些

情况汇报不可能

是不可能

所有池连接均在使用,已经



达到了最大池大小。]
   System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +6785345
   System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +6785863
   System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +233
   System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +278
   System.Data.SqlClient.SqlConnection.Open() +239
   System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure) +102

[EntityException: 基础提供多多程序运行


在 Open 上失败。]
   System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure) +114150407
   System.Data.EntityClient.EntityConnection.Open() +142
   System.Data.Objects.ObjectContext.EnsureConnection() +97
   System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) +66
   System.Data.Objects.ObjectQuery`1.Execute(MergeOption mergeOption) +43
   System.Data.Objects.ObjectContext.TryGetObjectByKey(EntityKey key, Object& value) +1183
   Uninf.Dao.EFHelper.EFDao.GetByPk(TPk pk, ConnectionType connectionType) in D:\uninf\优府网\代码库\Uninf\Uninf\Dao\EFHelper\EFDao.cs:519
   Uninf.Helper.<>c__DisplayClass21_0.<GetPhotoAlbumInfo>b__0() in D:\uninf\优府网\代码库\Uninf\Uninf\Helper\PhotoHelper.cs:374
   Uninf.Utility.MemCache.Cache.UninfEnyimMemCache.Get(String key, Func`1 nullDo, DateTime exp) in D:\uninf\优府网\代码库\Uninf\Uninf\Utility\MemCache\Cache\UninfEnyimMemCache.cs:64
   Uninf.Utility.MemCache.MemCache.GetObj(String key, Func`1 nullDo, DateTime expiry) in D:\uninf\优府网\代码库\Uninf\Uninf\Utility\MemCache\MemCache.cs:135
   Uninf.Page.Controllers.ListController.Photo(Int32 id, String t) in D:\uninf\优府网\代码库\Uninf\Uninf\Uninf_Page\Controllers\ListController.cs:378
   lambda_method(Closure , ControllerBase , Object[] ) +164
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +264
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +39
   System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +124
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +7278150
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +7278150
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +1509
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +727764
   System.Web.Mvc.Controller.ExecuteCore() +159
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +334
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +62
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +15
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +52
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1506
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288