无法打开登录所请求的数据库 "UninfWebData"。登录失败。用户 'sa' 登录失败。

  • 时间:
  • 浏览:1

[SqlException (0x150131904): 无法打开登录所请求的数据库 "UninfWebData"。登录失败。
用户 'sa' 登录失败。]
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +642
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +116
   System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +1089
   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: 基础提供多多tcp连接


在 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