Samoyed
Hello,
Thanks for the answer, Tom. I hadn't been able to try it until now, because the conflictive computer wasn't available. Now I've tried it and while checking the WFTrace.log I've found the following exception:
System.Workflow.Runtime Critical: 0 : Uncaught exception escaped to the root of the workflow.
In instance 561fbbc9-3248-4cfa-9243-b6b8bbf8ed71 in activity
Inner exception: System.Workflow.Runtime.Hosting.PersistenceException: Este flujo de trabajo no es propiedad de WorkflowRuntime. La propiedad de WorkflowRuntime ha caducado o el flujo de trabajo es propiedad de otro WorkflowRuntime. ---> System.Workflow.Runtime.WorkflowOwnershipException: Este flujo de trabajo no es propiedad de WorkflowRuntime. La propiedad de WorkflowRuntime ha caducado o el flujo de trabajo es propiedad de otro WorkflowRuntime.
en System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService.System.Workflow.Runtime.IPendingWork.Commit(Transaction transaction, ICollection items)
en System.Workflow.Runtime.WorkBatch.PendingWorkCollection.Commit(Transaction transaction)
en System.Workflow.Runtime.WorkBatch.Commit(Transaction transaction)
en System.Workflow.Runtime.VolatileResourceManager.Commit()
en System.Workflow.Runtime.WorkflowExecutor.DoResourceManagerCommit()
en System.Workflow.Runtime.Hosting.WorkflowCommitWorkBatchService.CommitWorkBatch(CommitWorkBatchCallback commitWorkBatchCallback)
en System.Workflow.Runtime.Hosting.DefaultWorkflowCommitWorkBatchService.CommitWorkBatch(CommitWorkBatchCallback commitWorkBatchCallback)
en System.Workflow.Runtime.WorkflowExecutor.CommitTransaction(Activity activityContext)
en System.Workflow.Runtime.WorkflowExecutor.Persist(Activity dynamicActivity, Boolean unlock, Boolean needsCompensation)
Translating the exception into English, it means something like "This workflow isn't owned by WorkflowRuntime. The ownership of WorkflowRuntime has expired or the workflow is owned by another WorkflowRuntime." The problem is that it doesn't make sense to me, as it can't be a problem with the code or with the workflow design, because the same program works perfectly in another computer. It might have to be something about the configuration, but I don't know what... I also found some more interesting information in the log file:
System.Workflow.Runtime.Hosting Information: 0 : SqlWorkflowPersistenceService(a4a8925b-a9b1-4cc7-b37e-9fa62cebba5a): inserting instance: 561fbbc9-3248-4cfa-9243-b6b8bbf8ed71, unlocking: True database: AreaInformatica
System.Workflow.Runtime.Hosting Information: 0 : SqlWorkflowPersistenceService(a4a8925b-a9b1-4cc7-b37e-9fa62cebba5a): owership violation with a4a8925b-a9b1-4cc7-b37e-9fa62cebba5a on instance 561fbbc9-3248-4cfa-9243-b6b8bbf8ed71
System.Workflow.Runtime Error: 0 : SqlWorkflowPersistenceService(a4a8925b-a9b1-4cc7-b37e-9fa62cebba5a): Exception thrown while persisting instance: Este flujo de trabajo no es propiedad de WorkflowRuntime. La propiedad de WorkflowRuntime ha caducado o el flujo de trabajo es propiedad de otro WorkflowRuntime.
If I understand it right, it seems to have a conflict with another runtime that is holding the instance, but both runtimes seem to have the same GUID, so they're the same one. Anyways I don't think there can be two different runtimes as the program works in other computers.
Any help will be welcome. Thanks,
Ruben