blog community

Welcome to blog community Sign in | Join | Help
in Search

Marcel de Vries, MVP Team System

.NET Technologies, Architecture and Web Development

Workflow aborted when SqlWorkflowPersistenceService added

Today I was working on a demo for my windows Workflow Foundation sessions I will be presenting at Devdays coming Wednesday and I ran into a weird problem using the SqlWorkflowPersistenceService service.

 

I had a very simple workflow that does nothing more then wait for 5 seconds and then resume from the delay. (Using the delay activity)

I wanted to demonstrate that when adding the SqlWorkflowPersistenceService I would see WorkflowPersisted, WorkflowUnloaded and WorkflowLoaded events appear in my console.

 

But what happened in stead is that my workflow went from idle to abort!

 

I did some digging around the newsgroups bud did not find anyone having the same problem. What I found was a post that showed how you could make the SqlWorkflowPersistenceService better performing, by avoiding DTC(Distributed Transaction Coordinator) traffic. So I gave that a Try because I suspected my DTC was the problem. It appeared to have solved my problem. After some further investigation my local DTC service appeared not to be running and that caused to workflow to abort in the first situation. (B.t.w. I did not get any exception message telling me what went wrong, so I had to figure this out myself)

 

So I have the demo up and running happily and added some additional code to show how you can optimize SqlWorkflowPersistenceService as well avoiding DTC.

 

Hope this helps you solve the similar problem faster then I did J

 

Published Monday, March 06, 2006 12:46 PM by marcelv

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Raimond said:

Dag Marcel,

Enig idee wanneer de presentaties van de DevDays beschikbaar komen?
March 15, 2006 6:59 PM
 

Philipp said:

Wow, this really helped! I had exactly the same problem and starting on the DTC service solved it.

I see, you already postet this two years ago, but still, the problem is not solved or documented (also not by any exception message)...

I'd be quite happy to have a look at your additional code you mentioned above. However, I couldn't find any link.

Thanks a lot

Philipp

May 2, 2008 1:43 PM

Leave a Comment

(required) 
(optional)
(required) 
Submit
Powered by Community Server, by Telligent Systems