developers.de
daenet's .NET Community

Workflow Service Host error

Damir Dobric Posts

 

Damir@Phone    



My upcoming sessions:

AppFabric Applications at
NRW Conf 2011
09.Sept.2011 Wuppertal

HTML5 widgets in WP7+
Monodroid
Mobility Day
21.Sept.2011 - Zagreb

AppFabric and WCF sessions at
Advanced Developer Conference
26.-27. Oktober 2011 in Frankenthal

AppFabric Applications, queues, topics and more at
Prio Conference
02. - 03. November 2011 in Meistersingerhalle Nürnberg

AppFabric Applications deep dive hosted by
.NET User Group Frankfurt
17.Nov.2011 18.30-22.30 Microsoft - Bad Homburg 

 

 

When self-hosting the workflow service, for example in one console application, you may get following error:

"Service behavior WorkflowServiceBehavior requires that the binding associated with endpoint BasicHttpBinding_IMyContract listening on http://localhost:8000/wfservice supports the context protocol, because the contract associated with this endpoint may require a session. Currently configured binding for this endpoint does not support the context protocol. Please modify the binding to add support for the context protocol or modify the SessionMode on the contract to NotAllowed."

Note that some words in the error text above are related to my service and not to your one. That means that your error message will look probably slightly different.

This error occurs when the used binding is not of expected type. In my example I used basicHttpBinding to host the workflow service. To solve the problem use a workflow specific binding *ContextBinding. For example basicHttpContextBinding.
In general, when using workflow services following bindings are supported:

BasicHttpContextBinding,
WsHttpCOntextBinding and
NetTcpContextBinding


Posted Aug 10 2008, 12:42 PM by Damir Dobric
Filed under: ,

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
daenet GmbH