0

I am attempting to complete the following "how-to" in order to try and understand how persistence works in .NET 4.0 Workflows.

MSDN - How to: Create and Run a Long Running Workflow

Unfortunately, there seems to be an error in the documentation or I have a problem with my setup, as I am unable to add references to the following components:

  • System.WorkflowServiceModel
  • System.WorkflowService

These components are specified in step (1) of the section "To enable persistence in a workflow application".

I tried researching this problem but didn't find anything very useful. It seems that I'm not the only person who has had problems:

Microsoft Connect - VS2010 Missing Assembly System.WorkflowServiceModel

A user here suggests that "the problem was that the client profile was used" but I don't really understand what this means.

I have added my question to that page and will update here if an answer is forthcoming from Microsoft.

Update:

Following Chris' comments, I found a better link which I put in a comment. I think the accepted approach on Stack Overflow is to update the initial question?

MSDN - Configuring the SQL Workflow Instance Store

dbush
  • 169
  • 1
  • 12
  • Check your project properties to see what .NET framework version you are targeting. Many projects by default target what's called the .NET Framework 4.0 Client Profile. For workflow services, you want to make sure that you're targeting the regular .NET Framework 4.0. – Chris Gillum Dec 07 '09 at 14:09

2 Answers2

1

This appears to be a bug in the documentation, not a problem with your setup. Actually, the whole article seems to contain completely outdated information - almost none of the content seems to be related to WF Beta 2. I would suggest looking up another site for now.

Chris Gillum
  • 14,526
  • 5
  • 48
  • 61
  • Thanks Chris. I have found a better link: Configuring the SQL Workflow Instance Store http://msdn.microsoft.com/en-us/library/ee395773(VS.100).aspx – dbush Dec 07 '09 at 14:41
1

The assembly(ies) got renamed/reorganized some time between PDC 2008 and Beta1. Look for System.ServiceModel.Activities.

Tim Lovell-Smith
  • 15,310
  • 14
  • 76
  • 93