Problems with wsdualHTTPBinding

I am attempting to host a callback service in IIS using the wsdualHTTPBinding. However I am getting the following error. Any help would be appreciated.

Configuration section 'system.serviceModel/bindings/WSDualHttpBinding' could not be created. Machine.config is missing information. Please verify that this configuration section is properly registered and that you have correctly spelled the section name. For Windows Communication Foundation sections, run ServiceModelReg.exe -i to fix this error.

< xml version="1.0" >

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

<system.serviceModel>

<services>

<!-- Before deployment, you should remove the returnFaults behavior configuration to avoid disclosing information in exception messages -->

<service name="AlertService" behaviorConfiguration="returnFaults">

<endpoint contract="IAlertService" binding="WSDualHttpBinding"/>

</service>

</services>

<behaviors>

<behavior name="returnFaults" returnUnknownExceptionsAsFaults="true"/>

</behaviors>

</system.serviceModel>

<system.web>

<compilation debug="true">

<assemblies>

<add assembly="System.Runtime.Serialization.Formatters.Soap, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>

</system.web>

</configuration>



Answer this question

Problems with wsdualHTTPBinding

  • webcliff

    Thanks. That did it.
  • FuZi0n

    Binding name is case sensitive,binding name should be

    binding="wsDualHttpBinding"

    please change

    <endpoint contract="IAlertService" binding="WSDualHttpBinding"/>

    to

    <endpoint contract="IAlertService" binding="wsDualHttpBinding/>



  • Problems with wsdualHTTPBinding