Como puedo arreglar dicho inconveniente ya que algunas veces cuando ejecuto alguna acción que implica "guardar y procesar" y esta entidad posea una ruta de autorización me indica este error el elmah

   System.ServiceModel.FaultException
The execution of an InstancePersistenceCommand was interrupted because the instance key '4d19be4d-435a-0495-c6a4-c4ff7632d950' was not associated to an instance. This can occur because the instance or key has been cleaned up, or because the key is invalid. The key may be invalid if the message it was generated from was sent at the wrong time or contained incorrect correlation data.

System.ServiceModel.FaultException: The execution of an InstancePersistenceCommand was interrupted because the instance key '4d19be4d-435a-0495-c6a4-c4ff7632d950' was not associated to an instance. This can occur because the instance or key has been cleaned up, or because the key is invalid. The key may be invalid if the message it was generated from was sent at the wrong time or contained incorrect correlation data.

Server stack trace: 
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Aseinfo.VH4.Infraestructura.Workflow.AuthorizationWorkflowService.IAuthorizationWorkflowService.AutorizarActividadEnFlujo(AutorizarActividadEnFlujoRequest request)
   at Aseinfo.VH4.General.Controllers.FlujosAutorizacionController.Autorizar(List`1 codigosActividades, String comentarios, String areaOrigen, String controllerOrigen, String actionOrigen) in c:\BuildAgent\work\5ed3bec7206feb61\VH4\General\Controllers\FlujosAutorizacionController.cs:line 418
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)

asked 04 Jun '13, 17:00

JulioRosales's gravatar image

JulioRosales
(suspended)
accept rate: 26%

Es una ruta de tipo "Jerarquia Recursiva"

(04 Jun '13, 17:08) JulioRosales JulioRosales's gravatar image

El error lo que dice es que cuando intentó hacer algo sobre una entidad con flujo, no encontró la instancia del flujo de autorización con la que se inició la autorización, es decir, que cuando se "guardó y procesó" se generó una instancia del flujo y posteriormente cuando se autorizó la actividad, dicha instancia ya no existía.

Te agradecería revisaras algunas cosas:

  • El AppFabric debe estar bien configurado (tal como lo explica la presentación de instalación), esta es la principal razón por la que algo asi puede suceder
  • Investigá cuanto tiempo después del inicio del flujo se da la autorización
  • Revisá el log de errores del AppFabric en el IIS. Esto lo podes ver desde el administrador del IIS, seleccionando el sitio del workflow y luego ver el Dashboard de AppFabric para visualizar cuantos errores han habido y la razón de los mismos.

Te puse esto como respuesta porque si no está bien configurado el AppFabric, ese es el problema. Si está bien configurado entonces detalla los problemas como comentario a esta respuesta y cuando sepamos que es, la editamos....

link

answered 04 Jun '13, 19:50

sabanito's gravatar image

sabanito ♦♦
(suspended)
accept rate: 54%

Correcto sabanito, no se porque la razón de que se desconfiguro el WCF del Workflow en la parte del persistence el "SQL Server Workflow Persistence" por lo cual procedí a reconfigurarlo y reiniciar los flujos de las solicitudes.

(04 Jun '13, 22:55) JulioRosales JulioRosales's gravatar image
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:

×7

Asked: 04 Jun '13, 17:00

Seen: 1,623 times

Last updated: 04 Jun '13, 22:55

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