System.Workflow.ComponentModel.Design.IIdentifierCreationService

10Jun09

When creating a sequential workflow in VS, from a C# class library, haven’t modified the .csproj file yet, and try to open the workflow designer, you may get this error:

“System.Workflow.ComponentModel.Design.IIdentifierCreationService must be installed for this operation to succeed. Ensure that this service is available.”

1) CLOSE the project and Visual Studio. Open the .csproj file in Notepad and make sure your <ProjectTypeGuids></ProjectTypeGuids> section looks like this:

<ProjectTypeGuids>{14822709-B5A1-4724-98CA-57A101D1B079};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>

The project file will have one of them already. These specific GUIDs say the project is a workflow and C# project.

2) Add the following line just inside the <Project> node:

<Import Project=”$(MSBuildExtensionsPath)\Microsoft\Windows Workflow Foundation\<Latest .NET framework version>\Workflow.Targets” />

So the real thing would be (in my case of .NET 3.5; You will get an error if the .NET version of the project doesn’t match up with the version you specify in this line!):

<Import Project=”$(MSBuildExtensionsPath)\Microsoft\Windows Workflow Foundation\v3.5\Workflow.Targets” />

And that should do the trick! You will now be able to open the workflow in design mode.

Advertisement


No Responses Yet to “System.Workflow.ComponentModel.Design.IIdentifierCreationService”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.