title: Underlying connection closed error in WCF client
body: <p>I was trying to create a WCF service which returns <code>IEnumarable&lt;fVehicleTypes&gt;</code>.</p>
  
  <p>My service is </p>
  
  <pre><code>[ServiceKnownType(typeof(VehicleMaster))]
  public IEnumerable&lt;VehicleMaster&gt; ListAllVehicle()
  {
     IEnumerable&lt;VehicleMaster&gt; vehicles = veadb.VehicleMasters.OrderBy(v=&gt;v.ID).Select(v =&gt; v);
  
     return vehicles.ToList();
  }
  </code></pre>
  
  <p>And client I am trying to</p>
  
  <pre><code>public ActionResult ListAllVehicles()
  {
              VEACRUDE.VEACRUDClient veadb = new VEACRUDE.VEACRUDClient();
              var VehicleDetails =veadb.ListAllVehicle();
  
              veadb.Close();
              return View(VehicleDetails);
  }
  </code></pre>
  
  <p>This is where it is throwing the above mentioned error. I tried all I could find over internet. Nothing helped.</p>
  
  <p>Also I tried enabling tracing, which didn't work at all.</p>