Hi, Can you please let me know if I have a mistake in the following configuration for an svc hosted in an ASP/IIS. Whenever I browse the service, I get an error (you can notice in the attached snapshot. When I comment the servicebusrest element as well as the binding for the rest, It works fine (as if I can not put more than 1 bahavoir
<behaviors><serviceBehaviors><behavior name=""><serviceDebug includeExceptionDetailInFaults="true" /><serviceMetadata /></behavior></serviceBehaviors><endpointBehaviors><behavior name="servicebus"><transportClientEndpointBehavior><tokenProvider><sharedSecret issuerName="owner" issuerSecret="blabla........+EhsPkjgg=" /></tokenProvider></transportClientEndpointBehavior><serviceRegistrySettings discoveryMode="Public" /></behavior><behavior name="servicebusrest"><transportClientEndpointBehavior><tokenProvider><sharedSecret issuerName="owner" issuerSecret="blabla........+EhsPkjgg=" =" /></tokenProvider></transportClientEndpointBehavior><serviceRegistrySettings discoveryMode="Public" /><webHttp/></behavior></endpointBehaviors></behaviors><serviceHostingEnvironment aspNetCompatibilityEnabled="false" /><bindings><basicHttpRelayBinding><binding name="RelayBinding"><security relayClientAuthenticationType="RelayAccessToken" /></binding></basicHttpRelayBinding><netTcpRelayBinding><binding name="RelayBinding"><security relayClientAuthenticationType="RelayAccessToken" /></binding></netTcpRelayBinding><webHttpRelayBinding><binding name="RelayBinding"><security relayClientAuthenticationType="None" /></binding></webHttpRelayBinding></bindings><services><service name="ServiceBusHost.SampleService"><endpoint address="" binding="basicHttpBinding" contract="ServiceBusHost.ISampleService" /><endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" /><endpoint address="sb://mySB.servicebus.windows.net/SampleService" binding="netTcpRelayBinding" bindingConfiguration="RelayBinding" contract="ServiceBusHost.ISampleService" behaviorConfiguration="servicebus" /><endpoint address="https://mySB.servicebus.windows.net/Rest" binding="webHttpRelayBinding" bindingConfiguration="RelayBinding" contract="ServiceBusHost.ISampleService" behaviorConfiguration="servicebusrest" /></service></services>
The error I am getting