Buenos dias, este error me sale de vez en cuando en las personas que tienen autorizaciones pendientes:

System.Web.HttpException (0x80004005): Error al ejecutar la solicitud secundaria para el controlador System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper.
---> System.Web.HttpUnhandledException (0x80004005): Se produjo una excepción de tipo 'System.Web.HttpUnhandledException'.
---> System.Data.Entity.Core.EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details.
---> System.Data.SqlClient.SqlException: Valor de Timeout caducado. El período de tiempo de espera caducó antes de completar la operación o el servidor no responde.
---> System.ComponentModel.Win32Exception: Tiempo de espera de la operación de espera agotado
--- Fin del seguimiento de la pila de la excepción interna ---
 en System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
 en System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
 en System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
 en System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
 en System.Data.SqlClient.SqlDataReader.get_MetaData()
 en System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
 en System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
 en System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
 en System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
 en System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
 en System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
 en StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteDbDataReader(CommandBehavior behavior) en c:TeamCity uildAgentwork de24adb938b932dStackExchange.ProfilingDataProfiledDbCommand.cs:línea 233
 en System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext,TResult](TTarget target, Func`3 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
 en System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.Reader(DbCommand command, DbCommandInterceptionContext interceptionContext)
 en System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) --- Fin del seguimiento de la pila de la excepción interna ---
 en System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
 en System.Data.Entity.Core.Objects.Internal.ObjectQueryExecutionPlan.Execute[TResultType](ObjectContext context, ObjectParameterCollection parameterValues)
 en System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)
 en System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.<GetResults>b__5()
 en System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
 en System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
 en System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0()
 en System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()
 en System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
 en System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
 en Aseinfo.VH4.Infraestructura.Services.AlertaService.<GetAlertasDeUsuarioAutenticado>d__8.MoveNext() en c:VH4VH4InfraestructuraServicesAlertasAlertaService.cs:línea 137
 en ASP.views_home_alertasusuarioautenticado_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
 en System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
 en System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
 en System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
 en System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer)
 en System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
 en System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 en System.Web.UI.Page.HandleError(Exception e)
 en System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 en System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 en System.Web.UI.Page.ProcessRequest()
 en System.Web.UI.Page.ProcessRequest(HttpContext context)
 en System.Web.Mvc.ViewPage.ProcessRequest(HttpContext context)
 en System.Web.Mvc.ViewUserControl.ViewUserControlContainerPage.ProcessRequest(HttpContext context)
 en System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.<>c__DisplayClass4.<Wrap>b__3()
 en System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap[TResult](Func`1 func)
 en System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
 en System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
 en System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage)
 en System.Web.HttpServerUtilityWrapper.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm)
 en System.Web.Mvc.ViewPage.RenderView(ViewContext viewContext)
 en System.Web.Mvc.ViewUserControl.RenderView(ViewContext viewContext)
 en StackExchange.Profiling.Mvc.WrappedView.Render(ViewContext viewContext, TextWriter writer) en d:FilesGitHubminiprofilerdotnetStackExchange.Profiling.MvcWrappedView.cs:línea 56
 en System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
 en System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
 en System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
 en System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
 en System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
 en System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
 en System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
 en System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
 en System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
 en System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)

asked 12 Aug '16, 10:51

Juan%20Camilo%20Riveros's gravatar image

Juan Camilo Riveros
(suspended)
accept rate: 50%

edited 12 Aug '16, 17:14

Fernando%20Paz's gravatar image

Fernando Paz ♦♦
17.3k81635

Podrias proporcionar mas informacion acerca de este error ? aparece al momento de tratar de autorizar una solicitud o al momento de ingresar una solicitud o es otro momento diferente ?

(12 Aug '16, 14:05) sbarahona ♦♦ sbarahona's gravatar image

Perdon, sucede cuando ingresan a la pagina de inicio, se queda cargando un rato y luego aparece ese error. Lo raro es que aparece el error pero todo funciona correctamente, puede ir y autorizar lo que necesite autorizar tranquilamente.

(12 Aug '16, 14:07) Juan Camilo Riveros Juan%20Camilo%20Riveros's gravatar image

Hay una linea que llama la atencion

c:VH4VH4InfraestructuraServicesAlertasAlertaService.cs:línea 137

pueda ser que Evolution se tarde en actualizar el listado de las alertas que tiene asignado el usuario.

Podrías utilizar el propio profiler de Evolution para revisar los queries que toman mas tiempo en ejecutarse y evaluar si es necesario crear indices o alguna otra oportunidad de optimización

link

answered 12 Aug '16, 15:58

sbarahona's gravatar image

sbarahona ♦♦
(suspended)
accept rate: 32%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Evolution en BitBucket

En este sitio puede acceder al código fuente, centro de descargas y reportar bugs, propuestas y mejoras para Evolution.

Evolution en JIRA

En este sitio puedes sugerir nueva funcionalidad para Evolution, o puedes votar por la funcionalidad ya propuesta por otros usuarios.

Tags:

×26

Asked: 12 Aug '16, 10:51

Seen: 1,730 times

Last updated: 12 Aug '16, 17:14

[Acerca de] [Preguntas Frecuentes] [Privacidad] [Soporte] [Contacto]
Copyright 2013-2018. Asesores en Informática