Estoy creando una plaza en evolution version 1.7.2 pero la entidad "plazas" tiene configurado una ruta de tipo usuario, el cual se le inicia el flujo pero nunca llega a mostrarselo al usuario que autoriza.
El error que me da la bitacora del Workflow cuando lo envie autorizar:
2013-08-20 12:37:36,573 [18] INFO Aseinfo.VH4.WorkflowServices.Activities.LogMessage - Ocurrió un error y se terminará la instancia ee990be5-bd65-4f74-bde9-3d01178fe21e
2013-08-20 12:37:36,575 [18] ERROR Aseinfo.VH4.WorkflowServices.Activities.LogException - Se dió un error en la ejecución del workflow d47062e1-4d40-4fed-8144-cd3d3aae251b
Microsoft.Practices.ServiceLocation.ActivationException: Activation error occured while trying to get instance of type ISymmetricCryptoProvider, key "RijndaelManaged" ---> Microsoft.Practices.Unity.ResolutionFailedException: Resolution of the dependency failed, type = "Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.ISymmetricCryptoProvider", name = "RijndaelManaged".
Exception occurred while: Calling constructor Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.SymmetricAlgorithmProvider(System.Type algorithmType, System.String protectedKeyFileName, System.Security.Cryptography.DataProtectionScope protectedKeyProtectionScope, Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Instrumentation.ISymmetricAlgorithmInstrumentationProvider instrumentationProvider).
Exception is: DirectoryNotFoundException - Could not find a part of the path 'C:\inetpub\wwwroot\EvolutionWorkflowService\SymmetricKey.key'.
-----------------------------------------------
At the time of the exception, the container was:
Resolving Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.SymmetricAlgorithmProvider,RijndaelManaged (mapped from Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.ISymmetricCryptoProvider, RijndaelManaged)
Calling constructor Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.SymmetricAlgorithmProvider(System.Type algorithmType, System.String protectedKeyFileName, System.Security.Cryptography.DataProtectionScope protectedKeyProtectionScope, Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Instrumentation.ISymmetricAlgorithmInstrumentationProvider instrumentationProvider)
---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\inetpub\wwwroot\EvolutionWorkflowService\SymmetricKey.key'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.KeyManager.Read(String protectedKeyFileName, DataProtectionScope dpapiProtectionScope)
at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.SymmetricAlgorithmProvider..ctor(Type algorithmType, String protectedKeyFileName, DataProtectionScope protectedKeyProtectionScope, ISymmetricAlgorithmInstrumentationProvider instrumentationProvider)
at BuildUp_Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.SymmetricAlgorithmProvider(IBuilderContext )
at Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context)
at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)
at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)
--- End of inner exception stack trace ---
at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)
at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, String name, IEnumerable`1 resolverOverrides)
at Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)
--- End of inner exception stack trace ---
at Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)
at Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance[TService](String key)
at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.GetSymmetricCryptoProvider(String symmetricInstance)
at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.DecryptSymmetric(String symmetricInstance, String ciphertextBase64)
at Aseinfo.VH4.WorkflowServices.Activities.DecryptString.Execute(CodeActivityContext context) in c:\BuildAgent\work\2af027e4cc30ca96\VH4\WorkflowServices\WorkflowServices\Activities\DecryptString.cs:line 24
at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
2013-08-20 12:37:36,624 [18] INFO ASP.global_asax - Iniciando la construcción del Unity ChildContainer
2013-08-20 12:37:36,625 [18] ERROR ASP.global_asax - Ocurrió un error al construir el Unity ChildContainer del flujo
System.NullReferenceException: Object reference not set to an instance of an object.
at Aseinfo.VH4.WorkflowServices.Global.BuildChildContainer(WorkflowContext context) in c:\BuildAgent\work\2af027e4cc30ca96\VH4\WorkflowServices\WorkflowServices\Global.asax.cs:line 131
2013-08-20 12:37:36,627 [18] INFO Aseinfo.VH4.WorkflowServices.Activities.LogMessage - Ocurrió un error al intentar Terminar la instancia
2013-08-20 12:37:36,628 [18] ERROR Aseinfo.VH4.WorkflowServices.Activities.LogException - Se dió un error en la ejecución del workflow d47062e1-4d40-4fed-8144-cd3d3aae251b
System.NullReferenceException: Object reference not set to an instance of an object.
at System.Activities.Statements.MethodExecutor.InvokeAndUnwrapExceptions(MethodInfo methodToInvoke, Object targetInstance, Object[] actualParameters)
at System.Activities.Statements.MethodResolver.SyncMethodExecutor.BeginMakeMethodCall(AsyncCodeActivityContext context, Object target, AsyncCallback callback, Object state)
at System.Activities.Statements.MethodExecutor.BeginExecuteMethod(AsyncCodeActivityContext context, AsyncCallback callback, Object state)
at System.Activities.AsyncCodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Cabe resaltar que al aplicar el upgrade la empresa separo la funcion de base de datos y los aplicativos del mismo server
Podrías ampliarnos tu pregunta revisando el log del AppJob para ver si hay errores en la notificación? Chequea también el log del Workflow, debería registrar que inició el flujo y hasta donde se quedo...
El unico error que me da en el log del AppJob es "ERROR EmailNotificatorService" ahora en donde encuentro el log del Workflow? porque revisando la tabla wfl.ira si se encuentra registrado el inicio del flujo
El usuario que inicia el flujo es Administrador y tiene permiso para todas las empresas y a la vez tiene un empleo asociado
Tambien al hacer referencia al servicio del Workflow si se encuentra habilitado http://servidor/EvolutionWorkflowService/AuthorizationWorkflow.xamlx
Lo que procedi fue a borrar el flujo y volverlo a enviar autorizar y al momento revise el Log del Workflow y el error que me dio esta descrito arriba.