Advanced workflows not working

Sjoerd de Wildt asked on November 20, 2014 13:35

When I try to configure an advanced workflow, I keep getting the following error:

Image Text

I checked the documentation and did what it said, however, I cannot get it to work. Does anybody have a clue on what is going wrong?

Correct Answer

Sjoerd de Wildt answered on November 28, 2014 15:12

I fixed the problem. I indeed was missing the AppFabricPersistenceConnectionString in my web.config. Advanced workflows work now.

Thank you all for your time and effort!

0 votesVote for this answer Unmark Correct answer

Recent Answers

Virgil Carroll answered on November 20, 2014 15:22

Did you look in the Kentico Event Logs to see what kind of error you are getting on that side? We might be able to help, but will need more information. If the error log does not have any information, I would suggest contacting support on this to get further assistance.

Also just a note, when contacting support use their support form on this site. It gives you an option to record your screen and send along with the support issue to help them troubleshoot. Cool feature I just learned about yesterday.

1 votesVote for this answer Mark as a Correct answer

Vilém Jeniš answered on November 20, 2014 15:37

Hi Sjoerd!

This look like an error related to WCF services. If you're using SSL, there are a few extra steps to get it working. Check this documentation page out:

I hope you'll find this helpful.

1 votesVote for this answer Mark as a Correct answer

Sjoerd de Wildt answered on November 20, 2014 16:17

Thank you for your answers! I indeed checked the documentation on WCF and executed the steps, but they did not help.

When I look in the event log, I get this error:

EventID: 8388

EventType: E

EventTime: 11/20/2014 3:39:33 PM

Source: Application_Error


EventDescription: Message: The service '/Kentico81/CMSModules/Workflows/Services/WorkflowDesignerService.svc' cannot be activated due to an exception during compilation.  The exception message is: Cannot find connection string for connection name 'AppFabricPersistenceConnectionString'.
Parameter name: connectionStringName.

Exception type: System.ServiceModel.ServiceActivationException
Stack Trace: 
   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
   at System.Web.HttpApplication.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar)

Message: Cannot find connection string for connection name 'AppFabricPersistenceConnectionString'.
Parameter name: connectionStringName

Exception type: System.ArgumentException
Stack Trace: 
   at System.ServiceModel.Activities.Configuration.SqlWorkflowInstanceStoreElement.CreateBehavior()
   at System.ServiceModel.Description.ConfigLoader.LoadBehaviors[T](ServiceModelExtensionCollectionElement`1 behaviorElement, KeyedByTypeCollection`1 behaviors, Boolean commonBehaviors)
   at System.ServiceModel.Description.ConfigLoader.LoadServiceDescription(ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action`1 addBaseAddress, Boolean skipHost)
   at System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal(ConfigLoader configLoader, ServiceDescription description, ServiceElement serviceSection)
   at System.ServiceModel.ServiceHost.ApplyConfiguration()
   at System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses)
   at System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)
   at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses)
   at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)

EventUrl: /Kentico81/CMSModules/Workflows/Services/WorkflowDesignerService.svc/js

EventUserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko

EventUrlReferrer: http://localhost/Kentico81/CMSModules/Workflows/Workflow_Designer.aspx?workflowid=220&objectid=220
0 votesVote for this answer Mark as a Correct answer

Martin Danko answered on November 21, 2014 10:44

Hello Sjoerd,

Are you using SSL on your website? Is this an Azure project? Do you have the connection string "AppFabricPersistenceConnectionString" defined in your web.config file?

Best regards, Martin

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.