title: Endpoint not found when accessing via URL in a browser
body: <p>When I enter the address of my service, I get to see the WSDL file. However, When I add a suffix to the URL, I get the error message: "endpoint not found". It's definitely due to something wrong with my service model declaration but after a few hours, I'm inclined to admit that it's beyond me.</p>
  
  <p>I've made sure that the namespaces are correct as discussed <a href="https://stackoverflow.com/questions/2328840/service-has-zero-application-non-infrastructure-endpoints#3305260">here</a>.</p>
  
  <p>The first URL works. The other, don't.</p>
  
  <blockquote>
    <p><a href="http://---.azurewebsites.net/MyService.svc/" rel="nofollow noreferrer">http://---.azurewebsites.net/MyService.svc/</a><br>
    <a href="http://---.azurewebsites.net/MyService.svc/Ping" rel="nofollow noreferrer">http://---.azurewebsites.net/MyService.svc/Ping</a><br>
    <a href="http://---.azurewebsites.net/MyService.svc/Ping/" rel="nofollow noreferrer">http://---.azurewebsites.net/MyService.svc/Ping/</a> (as suggested <a href="https://stackoverflow.com/questions/3741858/endpoint-not-found">here</a>)</p>
  </blockquote>
  
  <p>In <em>behaviors</em> I've declared two behaviors - one for the end point and one for the service.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;behaviors&gt;
    &lt;endpointBehaviors&gt;
      &lt;behavior name="PingEndPointBehavior"&gt;
        &lt;webHttp/&gt;
      &lt;/behavior&gt;
    &lt;/endpointBehaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior name ="PingServiceBehavior"&gt;
        &lt;serviceMetadata httpGetEnabled="true"
                         httpsGetEnabled="true"/&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="true"/&gt;
      &lt;/behavior&gt;
      &lt;behavior name=""&gt;
        &lt;serviceMetadata httpGetEnabled="true"
                         httpsGetEnabled="true"/&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="false"/&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
  &lt;/behaviors&gt;
  </code></pre>
  
  <p>I declared the following binding for access via URL line in the browser.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;bindings&gt;
    &lt;webHttpBinding&gt;&lt;/webHttpBinding&gt;
  &lt;/bindings&gt;
  </code></pre>
  
  <p>In <em>services</em> I declared two end points (I tested with only the first one, as well).</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;service name="MyProject.MyService"
           behaviorConfiguration="PingServiceBehavior"&gt;
    &lt;endpoint name="PingEndPoint"
              behaviorConfiguration="PingEndPointBehavior"
              address="Ping"
              binding="webHttpBinding"
              contract="MyProject.IMyService"/&gt;
    &lt;endpoint contract="IMetadataExchange" 
              binding="mexHttpBinding" 
              address="mex" /&gt;
  &lt;/service&gt;
  </code></pre>
  
  <p>I also have the following in my config file. Doubtful of its significance, but one never knows.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true"
                             multipleSiteBindingsEnabled="true"/&gt;
  </code></pre>