title: wcf web.config file
body: <p>ok, my file have this structure.</p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;services&gt;
          &lt;service name="ManyaWCF.ServiceManya" behaviorConfiguration="ServiceBehaviour"&gt;
              &lt;!-- Service Endpoints --&gt;
              &lt;!-- Unless fully qualified, address is relative to base address supplied above --&gt;
              &lt;endpoint address="" binding="webHttpBinding" contract="ManyaWCF.IServiceManya" behaviorConfiguration="web"&gt;
                  &lt;!-- 
               Upon deployment, the following identity element should be removed or replaced to reflect the 
               identity under which the deployed service runs.  If removed, WCF will infer an appropriate identity 
               automatically.
           --&gt;
              &lt;/endpoint&gt;
          &lt;/service&gt;
  
      &lt;/services&gt;
      &lt;behaviors&gt;
          &lt;serviceBehaviors&gt;
              &lt;behavior name="ServiceBehaviour"&gt;
                  &lt;!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --&gt;
                  &lt;serviceMetadata httpGetEnabled="true" /&gt;
                  &lt;!-- 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 --&gt;
                  &lt;serviceDebug includeExceptionDetailInFaults="false" /&gt;
              &lt;/behavior&gt;
          &lt;/serviceBehaviors&gt;
          &lt;endpointBehaviors&gt;
              &lt;behavior name="web"&gt;
                  &lt;webHttp /&gt;
              &lt;/behavior&gt;
          &lt;/endpointBehaviors&gt;
      &lt;/behaviors&gt;
      &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true" /&gt;
  &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>i got the same web.config in other wcf and worked like a champ, ofc with different folders and files.
  my folder structure is the following.</p>
  
  <p><img src="https://i.stack.imgur.com/nTlwl.png" alt="enter image description here"></p>
  
  <p>When i try to play it i get this, </p>
  
  <pre><code> Service
  
   This is a Windows © Communication Foundation.
  
   The metadata publishing for this service is currently disabled.
  
   If you access the service, you can enable metadata publishing by completing the following steps to modify the configuration file or web application:
  
   1. Create the following service behavior configuration, or add the item to a configuration &lt;serviceMetadata&gt; existing service behavior:
  
  &lt;behaviors&gt;
  &lt;serviceBehaviors&gt;
      &lt;behavior name="MyServiceTypeBehaviors"&gt;
          httpGetEnabled="true" &lt;serviceMetadata /&gt;
      &lt;/ Behavior&gt;
  &lt;/ ServiceBehaviors&gt;
  &lt;/ Behaviors&gt;
   2. Add the behavior configuration to the service:
  
    name="MyNamespace.MyServiceType" &lt;service behaviorConfiguration="MyServiceTypeBehaviors"&gt;
    Note: The service name must match the name of the configuration for the service implementation.
  
   3. Add the following to end service configuration:
  
   binding="mexHttpBinding" contract="IMetadataExchange" &lt;endpoint address="mex" /&gt;
   Note: the service must have an http base address to add this.
  
   Here is an example of a service configuration file with metadata publishing enabled:
  
   &lt;configuration&gt;
   &lt;system.serviceModel&gt;
  
      &lt;services&gt;
          &lt;! - Note: the service name must match the name of the configuration for the service implementation. -&gt;
          name="MyNamespace.MyServiceType" &lt;service behaviorConfiguration="MyServiceTypeBehaviors"&gt;
              &lt;! - Add the following end. -&gt;
              &lt;! - Note: the service must have an http base address to add this. -&gt;
              binding="mexHttpBinding" contract="IMetadataExchange" &lt;endpoint address="mex" /&gt;
          &lt;/ Service&gt;
      &lt;/ Services&gt;
  
      &lt;behaviors&gt;
          &lt;serviceBehaviors&gt;
              &lt;behavior name="MyServiceTypeBehaviors"&gt;
                  &lt;! - Add the following item to the service behavior configuration. -&gt;
                  httpGetEnabled="true" &lt;serviceMetadata /&gt;
              &lt;/ Behavior&gt;
          &lt;/ ServiceBehaviors&gt;
      &lt;/ Behaviors&gt;
  
   &lt;/ System.serviceModel&gt;
   &lt;/ Configuration&gt;
  
    For more information about publishing metadata, see the following documentation: http://go.microsoft.com/fwlink/?LinkId=65455 (may be in English).
  </code></pre>
  
  <p>so, i only did 1 wcf and worked fine with same web.conif. My luck of exp and knowledge about this is killing me.
  Any clue?</p>
  
  <p>Thx in advance.</p>