2

I have a XAML file I exported from Microsoft Dynamics CRM 2011. When I open it in VS 2010 I get the following error:

Workflow Designer encountered problems with your document

Please check the document for invalid content, namespaces, references or reference loops.

'Set property '{clr-namespace:Microsoft.Xrm.Sdk.Workflow.Activities;assembly=Microsoft.Xrm.Sdk.Workflow}ActivityReference.AssemblyQualifiedName' threw an exception.' Line number '59' and line position '42'.

Any ideas why this is occurring?

Here is the referenced line in the XAML file:

 <mxswa:ActivityReference AssemblyQualifiedName="Microsoft.Crm.Workflow.Activities.EvaluateExpression, Microsoft.Crm.Workflow, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" DisplayName="EvaluateExpression">
Community
  • 1
  • 1
Dave Mackey
  • 4,306
  • 21
  • 78
  • 136

1 Answers1

2

You need to add a reference to the Microsoft.Xrm.Sdk.Workflow.dll assembly in the Workflow Toolbox.

Open the Toolbox window in Visual Studio (usually a fly-out from the left hand side), right click and select Add Items. Add a reference to the above assembly which is available in the bin folder of the SDK and you should see the tooling pane light up with additional custom CRM activities. You should now be able to load/compile your custom workflow

Darren Lewis
  • 8,338
  • 3
  • 35
  • 55