title: WCF reference in .NET Core
body: <p>how can I reference WCF to my .NET Core client? I download and install  "WCF Service Preview" plugin but when I trying add reference I got error </p>
  
  <blockquote>
    <p>Error: No endpoints compatible with .Net Core apps were found.
    An error occurred in the tool.</p>
    
    <p>Failed to generate service reference.</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/VmfEt.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VmfEt.png" alt="enter image description here"></a></p>
  
  <p>When I try service in my browser, works fine. Any ideas ?
  My WCF's web config:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
  
    &lt;appSettings&gt;
      &lt;add key="aspnet:UseTaskFriendlySynchronizationContext" value="true"/&gt;
    &lt;/appSettings&gt;
  
    &lt;system.web&gt;
      &lt;compilation debug="true" targetFramework="4.5"/&gt;
      &lt;httpRuntime targetFramework="4.5"/&gt;
      &lt;httpModules&gt;
        &lt;add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/&gt;
      &lt;/httpModules&gt;
    &lt;/system.web&gt;
  
    &lt;system.serviceModel&gt;
      &lt;services&gt;
        &lt;service name="ServiceLayer.TeamManagementService" behaviorConfiguration="GetDataBehavior"&gt;
          &lt;endpoint address="" binding="webHttpBinding" contract="ServiceLayer.ITeamManagementService" behaviorConfiguration="GetDataEndpointBehavior"&gt;&lt;/endpoint&gt;
        &lt;/service&gt;
      &lt;/services&gt;
  
      &lt;behaviors&gt;
  
        &lt;serviceBehaviors&gt;
          &lt;behavior name="GetDataBehavior"&gt;
            &lt;serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="true"/&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
  
        &lt;endpointBehaviors&gt;
          &lt;behavior name="GetDataEndpointBehavior"&gt;
            &lt;webHttp/&gt;
          &lt;/behavior&gt;
        &lt;/endpointBehaviors&gt;
  
      &lt;/behaviors&gt;
  
      &lt;protocolMapping&gt;
          &lt;add binding="basicHttpsBinding" scheme="https"/&gt;
      &lt;/protocolMapping&gt;    
      &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/&gt;
    &lt;/system.serviceModel&gt;
  
    &lt;system.webServer&gt;
      &lt;modules runAllManagedModulesForAllRequests="true"&gt;
        &lt;remove name="ApplicationInsightsWebTracking"/&gt;
        &lt;add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"
          preCondition="managedHandler"/&gt;
      &lt;/modules&gt;
      &lt;directoryBrowse enabled="true"/&gt;
      &lt;validation validateIntegratedModeConfiguration="false"/&gt;
    &lt;/system.webServer&gt;
  
  &lt;/configuration&gt;
  </code></pre>