title: WCF routing service channel shutdown
body: <p>The error message is following:</p>
  
  <blockquote>
    <p>This channel can no longer be used to send messages as the output
    session was auto-closed     due to a server-initiated shutdown. Either
    disable auto-close by setting the
    DispatchRuntime.AutomaticInputSessionShutdown to false, or consider
    modifying the shutdown protocol with the remote server.</p>
  </blockquote>
  
  <p>It happens, when I create a web request to a WCF router (wsHttpBinding or BasicHttpBinding to NetTcpBinding) and the router then requests WinService. Once the WinService throws an Exception, the next requests gives the error message above. It is created by the WCF router. 
  There was no solution anywhere, I've spend days finding one.</p>
  
  <p>Links to similar problems without solution:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/12144530/wcf-communication-error-occurs-randomly-and-impossible-to-catch-the-reason-why">WCF Communication error occurs randomly and impossible to catch the reason why</a></li>
  <li><a href="http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/3f19cdaa-f426-4902-a93a-2654c7f19788/" rel="nofollow noreferrer">http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/3f19cdaa-f426-4902-a93a-2654c7f19788/</a></li>
  </ul>