System.Workflow.ComponentModel.Design.IIdentifierCreationService
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.
Filed under: .NET, SharePoint, Visual Studio, Windows Workflow Foundation | Leave a Comment
Tags: .NET, SharePoint, Workflow
No Responses Yet to “System.Workflow.ComponentModel.Design.IIdentifierCreationService”