When i use Rabbit MQ binding in wcf with the following config file it throws an error.
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5"/>
</system.web>
<system.serviceModel>
<extensions>
<bindingExtensions>
<add name="rabbitMQBinding" type="RabbitMQ.ServiceModel.RabbitMQBindingSection, RabbitMQ.ServiceModel, Version=1.0.110.0, Culture=neutral, PublicKeyToken=null"/>
</bindingExtensions>
</extensions>
<bindings>
<rabbitMQBinding>
<binding name="OneWayRMQBinding"
hostname="localhost"
port="5672"
oneWay="false"/>
</rabbitMQBinding>
</bindings>
<services>
<service name="WCFApplication.WCFServer">
<host>
<baseAddresses>
<add baseAddress="soap.amqp://amq.direct/" />
</baseAddresses>
</host>
<endpoint address="OneWayService"
binding="rabbitMQBinding"
bindingConfiguration="OneWayRMQBinding"
contract="WCFApplication.IWCFServer" />
</service>
</services>
<client>
<endpoint name="OneWayServiceEndPoint"
address="soap.amqp://amq.direct/OneWayService"
binding="rabbitMQBinding"
bindingConfiguration="OneWayRMQBinding"
contract="WCFApplication.IWCFServer" />
</client>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the values below to false before deployment -->
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<!--
To browse web app root directory during debugging, set the value below to true.
Set to false before deployment to avoid disclosing web app folder information.
-->
<directoryBrowse enabled="true"/>
</system.webServer>
</configuration>