.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Sandeep Singh
Melody Anderson
Eminent IT
Post New Web Links

delayActivity never wakes up!

Posted By:      Posted Date: October 14, 2010    Points: 0   Category :WPF
Hi all

What I want to solve (simple version):
A codeActivity should make some changes in AD 6 months after due date.

It seems like I can't get my delay activity working correctly. Not alone, not inside a while or anything else. I noticed that there has been a lot of issues regarding delayAcitivities not waking up. Is it seriously not fixed yet? Seen this issue posted all the way back in 2007!

I've seen two different ways to do this (GAC or listenActivity) but no matter what I do the delayActivity stays in sleep mode.

I would really like some response for this issue since im writing my bachelor project and need this to work out.

And if anyone knows another way to execute a task 6 months from a set date please let me know.

Kind Regards Michael


View Complete Post

More Related Resource Links

.NET application crashes when computer system wakes up from sleep mode.


Need help in understanding this error message generated from mscorlib failing when using threading.  I know the problem is not the code written by me, as the application works fine until the computer system is left idle, say for 30mins and allowed to go into sleep mode then the error manifests itself, about a minute later when the computer wakes from sleep mode, the application will perform its tasks and then this error is generated.

This could be a problem with System.Net.NetworkInformation.NetworkChange.AddressChangeListener.AddressChangedCallback

Any information given about the error described below is greatly appreciated, and information on how to prevent such errors even more greatly appreciated, or traps and handles it successfully.


Kind Regards,


Details of the error given below:--


"The Undo operation encountered a context that is different from what was applied in the corresponding Set operation. The possible cause is that a context was Set on the thread and not reverted(undone)."

Source: "mscorlib"

StackTrace: "   at System.Threading.SynchronizationContextSwitcher.Undo()\r\n   at System.Threading.ExecutionContextSwitcher.Undo()\r\n   at System.Threading.ExecutionContext.run

SP2010 workflow: delayActivity


I hava created a seimple workflow, which creates a task and assign it to a user

Then it wait for the task to be completed, but in the meantime i have to check if the due date is expired.
So after the task creation i have put a "conditionedActivityGroup" with two branches: one which an "onTaskChanged" activity in a while loop (which check if tha task status gets to "completed"), and another branch with a delayActivity, which continuosly checks if the due date is expired.

I already know of some issues of the "delayActivity" (after each deploy i restart the "SharePoint 2010 Timer"), but i really cannot understand how does it work.

When the task is completed, the workflow should stop (since i have the "conditionedActivityGroup" untilCondition on the task completed - if the task is completed it should exit). And the workflow succesfully goes further, on to the last "logToHistoryListActivity", just before the workflow end. But even after this log gets written, the delay activity still runs, sleeping and awaking at regular intervals, as if the branch of the conditionedActivityGroup was still running (how can it be?? the last logToHistoryListActivity is outside the conditionedActivityGroup!)

Does anyone know anything about this problem?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend