1. <?xml version="1.0"?>
  2. <configuration>
  3.  
  4.   <appSettings>
  5.     <!--logs errors and warnings to event log-->
  6.     <add key="EnableLogging" value="true" />
  7.     <!--geo keys-->
  8.     <add key="GOOGLEMAPS_URL" value="http://maps.google.com/maps/geo?q=" />
  9.     <add key="GOOGLEMAPS_KEY" value="ABQIAAAAjn-nMVgqYGUJgHZ1P-pZ_BQuQ9_xRF0rWq1R-8w6REs8Q4vfKxQ0wYlwHP8P11Oq1njGKFp3uqhVtw" />
  10.   </appSettings>
  11.  
  12.   <system.web>
  13.     <compilation debug="false" targetFramework="4.0" />
  14.   </system.web>
  15.  
  16.   <system.serviceModel>
  17.    
  18.     <bindings>
  19.       <customBinding>
  20.         <binding name="BinaryHttpBinding">
  21.           <binaryMessageEncoding />
  22.           <httpTransport />
  23.         </binding>
  24.       </customBinding>
  25.       <basicHttpBinding>
  26.         <binding name="BasicHttpBinding">
  27.         </binding>
  28.       </basicHttpBinding>
  29.       <netTcpBinding>
  30.         <binding portSharingEnabled="true">
  31.           <security mode="None" />
  32.         </binding>
  33.       </netTcpBinding>
  34.     </bindings>
  35.    
  36.     <behaviors>
  37.       <serviceBehaviors>
  38.         <behavior name="default">
  39.           <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
  40.           <serviceMetadata httpGetEnabled="true"/>
  41.           <!-- 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 -->
  42.           <serviceDebug includeExceptionDetailInFaults="true"/>
  43.           <!--throttle service-->
  44.           <serviceThrottling
  45.            maxConcurrentCalls="10000"
  46.            maxConcurrentSessions="10000"
  47.            maxConcurrentInstances="10000" />
  48.         </behavior>
  49.       </serviceBehaviors>
  50.     </behaviors>
  51.  
  52.     <services>
  53.       <service behaviorConfiguration="default" name="Housters.Services.ListingService">
  54.  
  55.         <endpoint name="TcpEndpoint"
  56.                  address="net.tcp://127.0.0.1:8000/ListingService"
  57.                  binding="netTcpBinding"
  58.                  contract="Housters.Services.IListingService" />
  59.  
  60.         <endpoint name="ListingServiceHttpEndpoint"
  61.                  address=""
  62.                  binding="basicHttpBinding"
  63.                  bindingConfiguration="BasicHttpBinding"
  64.                  contract="Housters.Services.IListingService" />
  65.        
  66.       </service>
  67.     </services>
  68.  
  69.     <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  70.    
  71.   </system.serviceModel>
  72.  
  73.  <system.webServer>
  74.     <modules runAllManagedModulesForAllRequests="true"/>
  75.   </system.webServer>
  76.  
  77. </configuration>