Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

workflow deploy error from visual studio 2012

$
0
0

I've got exception while deploying workflow (while activating feature). It cant find types of my custom activities.

I put dll and describing xml to C:\Program Files\Workflow Manager\1.0\Workflow\Artifacts and C:\Program Files\Workflow Manager\1.0\Workflow\WFWebRoot\bin, and dll to the GAC. the server was restarted.

Visual Studio designer toolbox shows my Activities, and I successfully able to put them to surface, configure properties and build project.

What additional configuration steps should I do?

This is error description:

Error occurred in deployment step 'Activate Features': Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors:
Invalid type(s) 'MyTypes.MyType1'.
Invalid type(s) 'MyTypes.MyType2'.
 HTTP headers received from the server - ActivityId: 5571d59a-d1e9-4fb7-aaab-242abd60ab5b. NodeId: MYPC. Scope: /SharePoint/default/7307d5d1-055a-4d36-94af-7a761fca22eb/e6e5ca3c-9b7d-4688-940d-2ba3cfbf1ff9. Client ActivityId : ea185650-54fe-4440-84f6-f1f98c79c65a. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
   at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)
   at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
   --- End of inner exception stack trace ---
   at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
   at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)
   at Microsoft.Workflow.Client.ActivityManager.Publish(ActivityDescription description, Boolean overwriteXClassName, Boolean terminateDependentInstances)
   at Microsoft.SharePoint.WorkflowServices.FabricWorkflowManagementClient.PublishActivity(String serviceGroupName, ActivityDescription activity, Boolean overwriteXClass, Nullable`1 terminateInstances)
   at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishActivity(FabricWorkflowManagementClient client, ActivityDescription activityDefinition, String serviceGroupName)
   at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.<>c__DisplayClass5.<PublishDefinition>b__4()
   at Microsoft.SharePoint.WorkflowServices.WorkflowServiceContextExtensions.InvokeWithEcosystemRetry(WorkflowServicesContext context, EcosystemRequiredMethod method)
   at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishDefinition(WorkflowDefinition workflowDefinition)
   at Microsoft.SharePoint.WorkflowServices.WorkflowDefinitionStorageEventReceiver.PublishDefinition(SPItemEventProperties properties)


Viewing all articles
Browse latest Browse all 25064

Trending Articles