Contract requires Duplex, but Binding 'BasicHttpBinding' doesn't support it or isn't configured properly to support it
While creating / implementing a duplex service, there is a possibility of getting the error
Contract requires Duplex, but Binding 'BasicHttpBinding' doesn't support it or isn't configured properly to support it
Reason: name mentioned in the web config is different. Type changing it to complete namespace.
e.g: Your application name space is Devqueries.PollingDuplex.Web.Service.Controller, the config is as follows
<service behaviorConfiguration="NotificationServiceBehaviorConfig" name="Devqueries.PollingDuplex.Web.Service.Controller.NotificationService">
<endpoint address="" binding="customBinding" bindingConfiguration="Notification" contract="Devqueries.PollingDuplex.Web.Service.Controller.INotificationService"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
Comments
Post a Comment