title: WCF exception--Faulted state
body: <p>I added the WCF service reference to my project. Next step is to create a channel from the code.</p>
  
  <pre><code> WSHttpBinding bindingDialingType = new WSHttpBinding();
          EndpointAddress endingPointDialingType = new EndpointAddress("http://wsvc.corporate.my.com/International/DialingService.svc");
          ChannelFactory&lt;IDialingService&gt; iDialingServiceChannelFactory = new ChannelFactory&lt;IDialingService&gt;(bindingDialingType, endingPointDialingType);
          IDialingService instanceIDialingService = iDialingServiceChannelFactory.CreateChannel();
  </code></pre>
  
  <p>Because I met an exception, so I guess that something wrong with my channel factory code.</p>
  
  <pre><code>The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.
  </code></pre>
  
  <p>To capture the exception, I had the code.</p>
  
  <pre><code>My app.config is:
  
   &lt;system.serviceModel&gt;
    &lt;bindings&gt;
     &lt;basicHttpBinding&gt;
      &lt;binding name="BasicHttpBinding_iLuCRE" /&gt;
     &lt;/basicHttpBinding&gt;
     &lt;wsHttpBinding&gt;
      &lt;binding name="WSHttpBinding_IDialingService"&gt;
       &lt;security mode="None" /&gt;
     &lt;/binding&gt;
     &lt;/wsHttpBinding&gt;
    &lt;/bindings&gt;
    &lt;client&gt;
     &lt;endpoint address="http://wsvc.corporate.my.com/LuCRE/LuCRE.svc"
      binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_iLuCRE"
      contract="LuCRE.iLuCRE" name="BasicHttpBinding_iLuCRE" /&gt;
     &lt;endpoint address="http://wsvc.corporate.my.com/International/DialingService.svc"
      binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IDialingService"
      contract="DialingService.IDialingService" name="WSHttpBinding_IDialingService" /&gt;
    &lt;/client&gt;
   &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>I used WCFTestClient to test it, however the service does work. I added the service reference to my project and I don't know the code details.</p>
  
  <p><strong>Updated:</strong></p>
  
  <p>If I used the code </p>
  
  <pre><code> DialingServiceClient client = new DialingServiceClient();
  </code></pre>
  
  <p>Then call the method through <code>client</code>, then everything is fine. Why?    </p>