PortiBlog

SharePoint 2013 - Workflow error – Proxy - Workflow Manager 2013

22 augustus 2014

We recently had an unexpected error by a customer with SharePoint 2013 workflows in combination with workflow manager for SharePoint 2013. When we want to edit / see a workflow we get error:

1

Error message:

Method 'StartWorkflowOnListItem' in type 'Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider' from assembly 'Microsoft.SharePoint.WorkflowServices, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' does not have an implementation.

2

System.Net.WebException: The remote server returned an error: (503) Server Unavailable.    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)
Unexpected System.TypeLoadException: Method 'StartWorkflowOnListItem' in type 'Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider' from assembly 'Microsoft.SharePoint.WorkflowServices, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' does not have an implementation. at Microsoft.SharePoint.WorkflowServices.FabricSolutionProviderFactory.<.cctor>b__3(WorkflowServicesContext context) at Microsoft.SharePoint.WorkflowServices.FabricSolutionProviderFactory.GetProvider[T](WorkflowServicesContext context) at Microsoft.SharePoint.WorkflowServices.WorkflowServicesManager.GetProvider[T]() at Microsoft.SharePoint.WorkflowServices.ApplicationPages.WorkflowPageBase.ConstructStatusArraysWF4(ArrayList running, ArrayList completed, Boolean onlyMyWorkflows) at Mi... 66f4b09c-4db0-90af-0154-c327c33dcc4c08/22/2014 11:43:37.71* w3wp.exe (0x122C) 0x18BC SharePoint Foundation Runtime tkau Unexpected ...crosoft.SharePoint.WorkflowServices.ApplicationPages.WorkflowPage.ConstructStatusArrays() at Microsoft.SharePoint.WorkflowServices.ApplicationPages.WorkflowPage.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 66f4b09c-4db0-90af-0154-c327c33dcc4c08/22/2014 11:43:37.71 w3wp.exe (0x122C) 0x18BC SharePoint Foundation

Root cause / Solution

The root cause of this problem is that the customer had set a proxy in the web.config file. Url http://portal."yourwebapplication".local"./_layouts/15/Workflow.aspx is a web service that is calling the workflow manager farm registered url site with ‘’Register-SPWorkflowService –SPSite’’. In our case "wfm.webapplication.local".

The SharePoint 2013 workflow url is not a local site in SharePoint. So bypassonlocal is not valid in this case. We have set an extra set of url in the web.config file called bypasslist. All the url’s in the bypasslist will be excluded from the proxy and the error is gone.

This explains error ‘: (503) Server Unavailable’ in the error log

Original web.config
<defaultProxy><proxy usesystemdefault="false" proxyaddress="http://88.88.88.88:5565" bypassonlocal="true" /></defaultProxy>
 Change web.config added bypasslist
<defaultProxy><proxy usesystemdefault="false" proxyaddress="http://88.88.88.88:5565" bypassonlocal="true" /><bypasslist><add address="wfm.webapplication.local" />

</Bypasslist>

</defaultProxy>

For questions just contact us.

Johan Biere (@johanbiere)

Submit a comment