title: Calling a WCF service from client app receives EndpointNotFoundException, but does not error on browser
body: <p>I have a newly created WCF .SVC that is hosted in an ASP.NET website that also hosts traditional ASMX-style services. </p>
  
  <p>If I call the single method that is contained in the SVC, I get the following message. </p>
  
  <p><em>"There was no endpoint listening at <code>http://localhost/REDACTEDSITE/LicenseVerification.svc</code> that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details."</em></p>
  
  <p>However, I can paste that link into any browser on my local machine and get the "<strong>This is a Windows© Communication Foundation service. Metadata publishing for this service is currently disabled.</strong>" page. </p>
  
  <p>The IIS logs show that the browsers are issuing GET requests and receiving a 200 response. The WCF clients are issuing POST requests and receiving 404.0 responses. </p>
  
  <p>These are the latest config settings I have used. They are somewhat minimal.</p>
  
  <p><strong>host</strong></p>
  
  <pre><code>&lt;system.serviceModel&gt;
     &lt;client entries for other services that work&gt;
  
      &lt;services&gt;
        &lt;service name="LicenseVerification.svc"&gt;
          &lt;endpoint address="LicenseVerification.svc"
              binding="basicHttpBinding" bindingConfiguration="" contract="Management.ILicenseVerification" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
  
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p><strong>client</strong> </p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;client&gt;
        &lt;endpoint address="http://localhost/REDACTEDSITE/LicenseVerification.svc"
            binding="basicHttpBinding" bindingConfiguration="" contract="Management.ILicenseVerification"
            name="LicenseVerificationClient"&gt;
        &lt;/endpoint&gt;
      &lt;/client&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p><strong>contract</strong></p>
  
  <pre><code> [ServiceContract]
      public interface ILicenseVerification
      {
          [WebInvoke(Method="GET")] //have tried WebGet()
          [OperationContract]
          LicenseInfo GetProfileLicenseInfo(string profileName);
      }
  </code></pre>
  
  <p><strong>service impl</strong></p>
  
  <pre><code>  public class LicenseVerification : ILicenseVerification
      {
          LicenseInfo ILicenseVerification.GetProfileLicenseInfo(string profileName)
          {
              ProfileInfo _pi = ProfileHelper.GetRequestedProfileInfo(profileName);
              if (_pi == null)
              {
                  return null;
              }
  
              return LicenseVerifier.GetLicenseInfo(_pi);
          }
      }
  </code></pre>
  
  <p>I have tried re-registering asp.net 4.0, repairing the service model, restarting IIS, trashing and recreating the config files using the MS service config utility and by hand and I still cannot get this to work. </p>
  
  <p>These are small requests (a few KB), so I don't think its a size problem.</p>
  
  <p>The only thing that sticks out is the GET/POST, but that hasn't been a problem before for SVC's that I have made. </p>
  
  <p>My local environment is Win7/64, VS2010, .NET 4.</p>
  
  <p>Please let me know what else to try. I have culled the various SO posts on the same and had no luck (even the ones that look blatantly different). </p>