When trying to setup the connection mode of the rely binding to ‘Hybrid’ following exception might occur:
Invalid configuration. Unable to use transport protection with Hybrid mode.
This exception is thrown if you try to setup transport security when using hybrid connection mode.
Following configuration can cause this error:
<bindings>
<netTcpRelayBinding>
<binding name="hybridBinding" connectionMode="Hybrid">
</binding>
</netTcpRelayBinding>
</bindings>
To workaround this disable transport security which is by default enabled:
<bindings>
<netTcpRelayBinding>
<binding name="hybridBinding" connectionMode="Hybrid">
<security mode="None"/>
</binding>
</netTcpRelayBinding>
</bindings>
netTcpBinding does not support transport security when connection mode is set to Direct.
Hope this helps.
Posted
Apr 06 2011, 11:17 AM
by
Damir Dobric