ASP.net and workflowaborted

Hi,

I have a state machine which works fine until it reaches the Completed State. At this point, it doesn't complete, but the runtime raises the workflowaborted event after a long period. Where's the problem?

I use SqlPersistenceService for persistence.

Thanks

[292 byte] By [cobain81] at [2007-12-21]
# 1
Here is how I usually debug problems like this. Run the workflow in the debugger - but before do Ctrl-Alt-E - this brings up the exceptions dialog - check next to CLR Exceptions. This causes the debugger to break wherever there is an exception. Most likely there is an exception happening that isn't finding its way out.
JonFlanders at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 2

So should it be an exception thrown by my statemachine?

Should I run debugger in the workflow project or in the website?

Thanks very much

cobain81 at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 3
Doing it in the website will work fine.
JonFlanders at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 4

No exception is thrown.

Could it be a problem with scheduler (I tried both manual and default scheduler services)?

cobain81 at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 5

I substituted the SqlPersistenceService with a FilePersistenceService and the workflows completes successfully, so there is a problem with the SqlPersistenceService.

Any idea?

cobain81 at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 6
I was having a similar problem the other day... adding the SharedConnectionWorkflowTransactionService fixed the problem.

See this post for more info: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=391453&SiteID=1

Ken

KenByrd at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 7
Thanks, that works!
cobain81 at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...

Software Development for Windows Vista

Site Classified