Answered Workflow 4.0: The missed dll

  • Friday, June 05, 2009 6:54 PM
     
     
    Dear Microsoft people:
    I'd been trying to finish the "Getting started tutorial" for WF 4.0 (http://msdn.microsoft.com/en-us/library/dd489454(VS.100).aspx) but there is a missed dll in Framework 4.0 installation.
    When you are in the section: "How to: Create and run a Long running workflow" (http://msdn.microsoft.com/en-us/library/dd489452(VS.100).aspx), our framework installation does not have the component "System.WorkflowServiceModel.dll", and it is impossible to use idle properties for workflow instances.
    Where can I download that dll? I am very interested in use these technology, that's why I will really appreciate your help.
    Thanks in advance.
    Ignotus.

All Replies

  • Friday, June 05, 2009 9:23 PM
     
     Answered
    I've passed along a note to the owner of the documentation to correct this.

    Give it a try with System.ServiceModel.Activities, I think System.WorkflowServiceModel was a name we used for the PDC release.

    thanks,

    matt
    Program Manager -- Modeling Platform and Tools http://blogs.msdn.com/mwinkle
  • Tuesday, June 16, 2009 3:11 PM
     
     

    Matt, first than all, thanks for your answer and sorry for delay so much mine.
    But, it does not work.
    I think that is something inside System.Activities or System.Activities.WorkflowInstance that is not working properly. I am receiving the error message:
    'System.Activities.WorkflowInstance' does not contain a definition for 'Idle' and no extension method 'Idle' accepting a first argument of type 'System.Activities.WorkflowInstance' could be found (are you missing a using directive or an assembly reference?)
    Same thing is happening with Completed method.
    I don't think is a matter of a missing assembly. I think is some kind of bug inside System.Activities.dll.
    What do you think?
    Thanks in advance again.

    Ignotus.

  • Tuesday, June 16, 2009 6:56 PM
     
      Has Code
    Ignotus,

    I don't have the whole sample code in front of me, but I think that's a bug in the docs, and you can use this OnIdle and OnCompleted.

     myInstance.OnIdle = () =>  IdleAction.Persist;
     myInstance.OnCompleted = wcea => Console.WriteLine("you returned {0}", wcea.CompletionState);
                


    Let me know if that helps,

    matt
    Program Manager -- Modeling Platform and Tools http://blogs.msdn.com/mwinkle
  • Thursday, June 25, 2009 7:26 PM
     
     
    Matt, I'm getting these errors too - your suggestion allows compilation, but it's still not a working solution. Can somebody test and fix the whole 'How to' please?
  • Thursday, June 25, 2009 7:35 PM
     
     
    This worked for me:

    1.
    Ignore the missing reference

    2.
    myInstance.OnCompleted = wcea =>{
         Console.WriteLine("you returned {0}", wcea.CompletionState);
         syncEvent.Set();
    };

    Gavin
  • Friday, June 26, 2009 6:30 PM
     
     
    Gavin:
    Thanks a lot.
    It works.
    But I have to say that it is not enough, as the tutorial says, with execution of SqlPersistenceProviderSchema40.sql & sqlSqlPersistenceProviderLogic40.sql because a store procedure ('InsertInstance') is missing.
    It is necessary to execute SqlPersistenceProviderSchema.sql & sqlSqlPersistenceProviderLogic.sql too, and works.
    Thanks again Gavin, and I hope this tutorials could be corrected soon.

    Ignotus