When deploying workflow you might get sometimes really scaring error messages. Due the complex infrastructure of workflow host which relies on error messages can came back from different layer.
Today on top of all might seat either your application or SharePoint. Depending on who is the first who figure out the issue, message text can vary.
For example take a look on this very scary message: “HTTP Error 503. The service is unavailable”.
If you fiddle this one, you will see something :
Error 1 Error occurred in deployment step 'Activate Features': System.IO.InvalidDataException: A response was returned that did not come from the workflow service. Status code = 503:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Service Unavailable</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Service Unavailable</h2>
<hr><p>HTTP Error 503. The service is unavailable.</p>
</BODY></HTML>
This error is caused by almost most trivial problem in this area. The Workflow Host itself depends on many service like fabric, broker, Workflow Host etc. This is a valid statement as long you think on message and workflow runtime.
However, Workflow Host has also one more service which is hosted in IIS. If the pool of this one is stopped you will get ERR 503.
After pool restart you you can publish the workflow again. If all works fine, publishing message will be sent to topic “SharePoint/default/29fe885c-a358-4810-a0e0-91e08130594e/9823e703-aafd-4f21-997c-56e0f5bde4a3/”. Guids are used to identify the site collection and the application instance which hosts the workflow. Note that the publishing message contains in its body the full workflow definition.
PUT http://office15:12291/SharePoint/default/29fe885c-a358-4810-a0e0-91e08130594e/9823e703-aafd-4f21-997c-56e0f5bde4a3/$Activities/WorkflowXaml_890cea38_2b0f_4355_84fc_5416038d0e05?$overwriteXClass=true&api-version=0.6.0 HTTP/1.1
User-Agent: Microsoft-WF/0.6.0
E2EActivity: yfabtmj4vEGRp0iGI6BHdg==
Accept: application/xml
Content-Type: application/xml
Host: office15:12291
Content-Length: 2261
Expect: 100-continue
Connection: Keep-Alive
<ActivityDefinition xmlns="http://schemas.microsoft.com/workflow/2012/xaml/activities" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Name>WorkflowXaml_890cea38_2b0f_4355_84fc_5416038d0e05</Name><XamlString><Activity mc:Ignorable="sads" x:Class="Daenet.SpsWFA.Daenet.SpsWFA.Workflow0A.Workflow" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:made="clr-namespace:Microsoft.Activities.Design.ExpressionTranslation;assembly=Microsoft.Activities.Design" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities" xmlns:p="wf://workflow.windows.net/$Activities" xmlns:p1="http://schemas.microsoft.com/workflow/2012/xaml/activities" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Sequence sads:DebugSymbol.Symbol="9xAcjWbVruDz8KXhkQJfU7bzP0M6XFNhbXBsZXNcRGFlbmV0LlNwc1dGQVxEYWVuZXQuU3BzV0ZBXFdvcmtmbG93MEFcV29ya2Zsb3cueGFtbAMqAzgOAgEBLgU1HAIBAjELMVUCAQM=">
<Sequence.Variables>
<Variable x:TypeArguments="s:Guid" x:Name="__ReferenceID0" Name="itemId" />
</Sequence.Variables>
<p:GetCurrentItemGuid>
<p:GetCurrentItemGuid.Result>
<OutArgument x:TypeArguments="s:Guid">
<p1:ExpressionContainerReference x:TypeArguments="s:Guid" DisplayName="itemId">
<p1:ExpressionContainerReference.Arguments>
<InOutArgument x:TypeArguments="s:Guid" x:Key="itemId">
<VariableReference x:TypeArguments="s:Guid" Variable="{x:Reference __ReferenceID0}" />
</InOutArgument>
</p1:ExpressionContainerReference.Arguments>
<ArgumentReference x:TypeArguments="s:Guid" ArgumentName="itemId" />
</p1:ExpressionContainerReference>
</OutArgument>
</p:GetCurrentItemGuid.Result>
</p:GetCurrentItemGuid>
</Sequence>
</Activity></XamlString></ActivityDefinition>
Posted
Oct 23 2012, 10:20 PM
by
Damir Dobric