Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

ERRO CONEXÃO APLICAÇÃO CAELUMESTOQUE

System.Data.Entity.Core.EntityException was unhandled by user code HResult=-2146233087 Message=The underlying provider failed on Open. Source=EntityFramework StackTrace: em System.Data.Entity.Core.EntityClient.EntityConnection.Open() em System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions) em System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) em System.Data.Entity.Core.Objects.ObjectQuery1.<>cDisplayClass7.b5() em System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func1 operation) em System.Data.Entity.Core.Objects.ObjectQuery1.GetResults(Nullable1 forMergeOption) em System.Data.Entity.Core.Objects.ObjectQuery1..GetEnumerator>b0() em System.Data.Entity.Internal.LazyEnumerator1.MoveNext() em System.Collections.Generic.List1..ctor(IEnumerable1 collection) em System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) em CaelumEstoque.DAO.ProdutosDAO.Lista() na e:\CaelumEstoque\CaelumEstoque\DAO\ProdutosDAO.cs:linha 24 em CaelumEstoque.Controllers.ProdutoController.Index() na e:\CaelumEstoque\CaelumEstoque\Controllers\ProdutoController.cs:linha 18 em lambda_method(Closure , ControllerBase , Object[] ) em System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) em System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) em System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) em System.Web.Mvc.Async.AsyncControllerActionInvoker.ActionInvocation.InvokeSynchronousActionMethod() em System.Web.Mvc.Async.AsyncControllerActionInvoker.b36(IAsyncResult asyncResult, ActionInvocation innerInvokeState) em System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult2.CallEndDelegate(IAsyncResult asyncResult) em System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase1.End() em System.Web.Mvc.Async.AsyncResultWrapper.End[TResult](IAsyncResult asyncResult, Object tag) em System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) em System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.b3c() em System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>cDisplayClass45.b3e() InnerException: System.Data.SqlClient.SqlException HResult=-2146232060 Message=Tempo Limite de Conexão Expirado. O tempo limite decorrido durante a fase pós-logon. A conexão expirou enquanto aguardava o servidor concluir o processo de logon e responder; ou talvez tenha expirado ao tentar criar várias conexões ativas. A duração da tentativa de conexão com este servidor foi: [Pre-Login] initialization=13896; handshake=20; [Login] initialization=0; authentication=37; [Post-Login] complete=1230; Source=.Net SqlClient Data Provider ErrorCode=-2146232060 Class=11 LineNumber=0 Number=-2 Procedure="" Server=(LocalDB)\v11.0 State=0 StackTrace: em System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) em System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) em System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) em System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOptions) em System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOptions) em System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource1 retry) em System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource1 retry) em System.Data.SqlClient.SqlConnection.Open() em System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.b36(DbConnection t, DbConnectionInterceptionContext c) em System.Data.Entity.Infrastructure.Interception.InternalDispatcher1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action2 operation, TInterceptionContext interceptionContext, Action3 executing, Action3 executed) em System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext) em System.Data.Entity.Core.EntityClient.EntityConnection.b2() em System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>cDisplayClass1.b__0() em System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) em System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Action operation) em System.Data.Entity.Core.EntityClient.EntityConnection.Open() InnerException: System.ComponentModel.Win32Exception HResult=-2147467259 Message=O tempo limite de espera foi atingido ErrorCode=-2147467259 NativeErrorCode=258 InnerException:

2 respostas

Opa João!

Em que momento aconteceu esse problema? Foi em algum exercício específico? Cadê o código que está dando o erro? Posta pra gente aí :)

solução!

Bom dia, pessoal

Já consegui resolver, o problema estava acontecendo porque o banco não estava subindo. Obrigado pela atenção

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software