title: display wcf data - The underlying connection was closed:
body: <p>I'm trying to implement simple wcf service. I think that my server and client side endpoints  points are set correctly.
  On debugging I can see that my service returns data properly but when it comes to display on the screen (simple console application is the client of the service) it says</p>
  
  <blockquote>
    <p>The underlying connection was closed: A connection that was expected
    to be kept alive was closed by the server.</p>
  </blockquote>
  
  <pre><code> class Program
      {
          static void Main(string[] args)
          {
              string endPoint = ConfigurationManager.AppSettings["BookServiceActiveEndPoint"];
              IBookService proxy = new ChannelFactory&lt;IBookService&gt;(endPoint).CreateChannel();
  
              // this is where breaks    
              Console.WriteLine(proxy.GetBookDetails("TestBookTitle")); /
              Console.ReadLine();
          }
      }
  </code></pre>
  
  <p>any ideas where to look for further info?</p>
  
  <p>wcf host is website and solution has multiple startup projects</p>
  
  <pre><code> - webservices.host  (website) 
   - webservices.consoletests
  </code></pre>