title: WCF: relativeAddress,baseAddress and binding
body: <p>I am new in WCF and start my experience with a simple file-less application part of which (web.config) you can see below:</p>
  
  <pre><code>    &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true"&gt;
          &lt;serviceActivations&gt;
              &lt;add
                  factory="System.ServiceModel.Activation.ServiceHostFactory"
                  relativeAddress="./RelativeAddress.svc"
                  service="WCF_Transactions.MyService1"/&gt;
          &lt;/serviceActivations&gt;
      &lt;/serviceHostingEnvironment&gt;
  </code></pre>
  
  <p>Now I can access service at</p>
  
  <pre><code>http://localhost:18148/RelativeAddress.svc
  </code></pre>
  
  <p>Then I add next lines:</p>
  
  <pre><code>    &lt;services&gt;
          &lt;service name="WCF_Transactions.MyService1" behaviorConfiguration="MyBehavior1"&gt;
              &lt;host&gt;
                  &lt;baseAddresses&gt;
                      &lt;add baseAddress="http://localhost:18148/" /&gt;
                  &lt;/baseAddresses&gt;
              &lt;/host&gt;
              &lt;endpoint  address="/RelativeAddressX.svc" binding="basicHttpBinding" contract="WCF_Transactions.IService1"&gt;&lt;/endpoint&gt;
          &lt;/service&gt;
      &lt;/services&gt;
  
      &lt;behaviors&gt;
          &lt;serviceBehaviors&gt;
              &lt;behavior name="MyBehavior1"&gt;
                  &lt;serviceMetadata httpGetEnabled="true" /&gt;
              &lt;/behavior&gt;
          &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
  </code></pre>
  
  <p>So I expect that my service could be accessible through next address: </p>
  
  <pre><code>  http://localhost:18148/RelativeAddressX.svc
  </code></pre>
  
  <p>but I can't do this. What have I misunderstood?</p>