title: Absolute path is not working for WCF Service
body: <p>I have  a service file available in the following location. </p>
  
  <blockquote>
    <p>C:\Documents and Settings\U16990\My Documents\Visual Studio 2010\Projects\CalculationService\CalculationService\CalculationService.svc</p>
  </blockquote>
  
  <p>When I browse the svc file, it is working fine. The service endpoint is as listed below. It is currently a relative address used for address. </p>
  
  <pre><code>  &lt;service name="CalculationService.CalculationService" behaviorConfiguration="MyServiceTypeBehaviors"&gt;
      &lt;endpoint address="CalculationService" behaviorConfiguration=""
          binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_CalculationServiceInterface"
          contract="ICalculationService" /&gt;
    &lt;/service&gt;
  </code></pre>
  
  <p>IP address of my machine is 10.10.179.180 //InterNetwork AddressFamily</p>
  
  <p>When I change the address to use absolute path it is throwing error:</p>
  
  <pre><code>&lt;services&gt;
    &lt;service name="CalculationService.CalculationService" behaviorConfiguration="MyServiceTypeBehaviors"&gt;
      &lt;endpoint 
      address="http://10.10.179.180/C:/Documents and Settings/U16990/My Documents/Visual Studio 2010/Projects/CalculationService/CalculationService/CalculationService.svc/CalculationService"
      behaviorConfiguration=""
      binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_CalculationServiceInterface"
      contract="ICalculationService" /&gt;
    &lt;/service&gt;
  &lt;/services&gt;
  </code></pre>
  
  <blockquote>
    <p>Error:: No protocol binding matches the given address '<a href="http://10.10.179.180/C:/Documents" rel="nofollow noreferrer">http://10.10.179.180/C:/Documents</a> and Settings/U16990/My Documents/Visual Studio 2010/Projects/CalculationService/CalculationService/CalculationService.svc/CalculationService'. Protocol bindings are configured at the Site level in IIS or WAS configuration. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </p>
  </blockquote>
  
  <p>What can we do to correct it?</p>
  
  <p>Note: I am testing the service with <strong>Visual Studio 2010</strong>.</p>
  
  <p>Reference:</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/2251538/hosting-a-simple-wcf-service-in-console">Hosting a Simple Wcf Service in Console</a></li>
  <li><a href="https://stackoverflow.com/questions/4261180/error-no-protocol-binding-matches-the-given-address">error &quot;No protocol binding matches the given address ...&quot;</a></li>
  <li><a href="https://stackoverflow.com/questions/2046085/how-to-derive-a-website-absolute-file-path-from-a-wcf-service-hosted-in-iis?rq=1">How to derive a website absolute file path from a WCF service hosted in IIS?</a></li>
  </ol>