1: <system.serviceModel>
       2:     <extensions>
       3:         <behaviorExtensions>
       4:             <!--Defines custom message inspector-->
       5:             <add name="silverlightFaults"
       6:                   type="CustomBehaviors.SilverlightFaultBehavior, CustomBehaviors, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>                
       7:         </behaviorExtensions>
       8:     </extensions>
       9:  
      10:     <behaviors>
      11:         <endpointBehaviors>
      12:             <!--Custom behavior for message inspection-->
      13:             <behavior name="silverlightFaultBehavior">
      14:                 <silverlightFaults/>
      15:             </behavior>
      16:         </endpointBehaviors>
      17:         <serviceBehaviors>
      18:             <behavior name="YouBook.Web.YouBookDataServiceBehavior">
      19:                 <serviceMetadata httpGetEnabled="true"/>
      20:                 <serviceDebug includeExceptionDetailInFaults="false"/>
      21:             </behavior>
      22:         </serviceBehaviors>
      23:     </behaviors>
      24:     <bindings>
      25:         <customBinding>
      26:             <binding name="CustomBinding">
      27:                 <binaryMessageEncoding>
      28:                     <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
      29:                 </binaryMessageEncoding>
      30:                 <httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"/>
      31:             </binding>
      32:         </customBinding>
      33:     </bindings>
      34:     <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
      35:     <services>
      36:         <service behaviorConfiguration="YouBook.Web.YouBookDataServiceBehavior" name="YouBook.Web.YouBookDataService">
      37:             <endpoint address="" 
      38:                          binding="customBinding" 
      39:                          bindingConfiguration="CustomBinding" 
      40:                          contract="YouBook.Web.IYouBookDataService"
      41:                          behaviorConfiguration="silverlightFaultBehavior"
      42:                          />
      43:             <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
      44:         </service>
      45:     </services>
      46: </system.serviceModel>