CustomPersistenceService

Hi Andy,

Thank you very much for your reply.I have one more doubt in running the CustomPersistenceServiceSample.I can run the sample and the output i am getting is given below.

Workflow created

Saving instance: 88e97aab-0600-40c0-8cc9-d27d9fbd128b

Workflow idling

Saving instance: 88e97aab-0600-40c0-8cc9-d27d9fbd128b

Unlocking Instance

Actually while running i got error in the line given below

TimerEventSubscriptionCollection timers = (TimerEventSubscriptionCollection)rootActivity.GetValue(WorkflowInstance.TimerCollectionProperty);

saying that System.workflow.runtime.workflowInstance does not have definition for timercollection property. So i changed the line as

TimerEventSubscriptionCollection timers = (TimerEventSubscriptionCollection)rootActivity.GetValue(TimerCollectionProperty);

After this i am not getting any message in the console regarding the save completed state activity and the Load completed activity state.

Can you help me with this issue?

Thanks in advance.

Karthick.

[1400 byte] By [Karthick1020] at [2007-12-22]
# 1

Karthick,

I think the line should be:

TimerEventSubscriptionCollection timers = (TimerEventSubscriptionCollection)rootActivity.GetValue(TimerEventSubscriptionCollection.TimerCollectionProperty);

Please make sure you are using the latest version WF externsion for VS.NET, .NET framework 3.0, .and the Windows SDK . For how to collect the latest version, view the following post and the reply from Tom Lake:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=531535&SiteID=1

Hope this help

Andy Ho

AndyHo at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 2

Hi Andy,

Thank you for your reply.I checked with the codeline you sent.But it gives the same error.I am currently using the beta 2.2 of WF.I will install RC2 and try.

Thank You.

Karthick.

Karthick1020 at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...

Software Development for Windows Vista

Site Classified