title: WCF call throws: "The provided URI scheme 'http' is invalid; expected 'net.tcp'." exception
body: <p>I have a WCF service hosted in IIS7.</p>
  
  <p>This is the app.config for my service hosted in IIS</p>
  
  <pre><code>&lt;system.serviceModel&gt;
    &lt;bindings /&gt;
    &lt;services&gt;
      &lt;service behaviorConfiguration="querierSearch.Querier.WCF.QuerierBehavior"
        name="querierSearch.Querier.WCF.Querier"&gt;
        &lt;endpoint 
           address="net.tcp://localhost:808/querierSearch.Querier.WCF/Querier.svc"
          binding="netTcpBinding" bindingConfiguration="" name="EndPointTCP"
          contract="querierSearch.Querier.WCF.IQuerier" /&gt;
      &lt;/service&gt;
    &lt;/services&gt;
    &lt;behaviors&gt;
      &lt;serviceBehaviors&gt;
        &lt;behavior name="querierSearch.Querier.WCF.QuerierBehavior"&gt;
          &lt;serviceMetadata httpGetEnabled="true" /&gt;
          &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
        &lt;/behavior&gt;
      &lt;/serviceBehaviors&gt;
    &lt;/behaviors&gt;
  &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>And below is the app.config in the client that references the WCF Service.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;netTcpBinding&gt;
          &lt;binding name="EndPointTCP" closeTimeout="00:01:00" 
            openTimeout="00:01:00"
            receiveTimeout="00:10:00" sendTimeout="00:01:00" 
            transactionFlow="false" transferMode="Buffered" 
            transactionProtocol="OleTransactions"
            hostNameComparisonMode="StrongWildcard" listenBacklog="10" 
            maxBufferPoolSize="524288"
            maxBufferSize="65536" maxConnections="10" 
            maxReceivedMessageSize="65536"&gt;
            &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" 
            axArrayLength="16384" maxBytesPerRead="4096" 
            maxNameTableCharCount="16384" /&gt;
            &lt;reliableSession ordered="true" inactivityTimeout="00:10:00"
              enabled="false" /&gt;
            &lt;security mode="Transport"&gt;
              &lt;transport clientCredentialType="Windows" 
              protectionLevel="EncryptAndSign" /&gt;
              &lt;message clientCredentialType="Windows" /&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
        &lt;/netTcpBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
        &lt;endpoint address="net.tcp://localhost/Search.Querier.WCF/Querier.svc"
          binding="netTcpBinding" bindingConfiguration="EndPointTCP"
          contract="SearchQueryService.IQuerier"
          name="EndPointTCP"&gt;
          &lt;identity&gt;
            &lt;userPrincipalName value="joeuser@company.com" /&gt;
          &lt;/identity&gt;
        &lt;/endpoint&gt;
      &lt;/client&gt;
    &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>For some reason I still get "The provided URI scheme 'http' is invalid; expected 'net.tcp'." exception .</p>
  
  <p>I cannot figure out why.....</p>